path-module
v0.1.2
Published
Node path module as a browser-compatible standard JS module
Downloads
226
Readme
path-module
This is a port of the Node ’path’ module ported to ES2022 and published to npm as a browser-compatible, standard JavaScript module.
Install
$ npm install path-module
Usage
You should be able to use this package as a replacement for the built-in path
package with systems that allow customization of import specifier resolution,
like standard import maps,
or the Rollup node-resolve plugin.
Usage with Rollup
You can install this package under the path
name:
{
"dependencies": {
"path": "npm:path-module"
}
}
Then set preferbuiltins
to false
so that the npm package is used.
License
MIT
Acknowledgements
This repository is forked from https://github.com/jinder/path