PR-URL: https://github.com/nodejs/node/pull/40865 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
3 lines
131 B
JavaScript
3 lines
131 B
JavaScript
const { relative } = require('path')
|
|
const relpath = (from, to) => relative(from, to).replace(/\\/g, '/')
|
|
module.exports = relpath
|