path-module
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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.

Documentation

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

Readme

Keywords

Package Sidebar

Install

npm i path-module

Weekly Downloads

512

Version

0.1.2

License

MIT

Unpacked Size

19.1 kB

Total Files

7

Last publish

Collaborators

  • justinfagnani