UNPKG

@stryke/path

Version:

A package containing various utilities that expand the functionality of NodeJs's built-in `path` module

10 lines (9 loc) 282 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.replacePath = replacePath; var _slash = require("./slash.cjs"); function replacePath(e, t = process.cwd()) { return (0, _slash.slash)(e).replace((0, _slash.slash)(t), "").replace(/^\//, ""); }