mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 22:56:41 +00:00

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