包详细信息

path-module

jinder1.9kMIT0.1.2

Node path module as a browser-compatible standard JS module

path

自述文件

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