mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05: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
|