Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork49
The path module from Node.js for browsers
License
browserify/path-browserify
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The
pathmodule from Node.js for browsers
This implements the Node.jspath module for environments that do not have it, like browsers.
path-browserifycurrently matches theNode.js 10.3 API.
You usually do not have to installpath-browserify yourself! If your code runs in Node.js,path is built in. If your code runs in the browser, bundlers likebrowserify orwebpack include thepath-browserify module by default.
But if none of those apply, with npm do:
npm install path-browserifyvarpath=require('path')varfilename='logo.png';varlogo=path.join('./assets/img',filename);document.querySelector('#logo').src=logo;
See theNode.js path docs.path-browserify currently matches the Node.js 10.3 API.path-browserify only implements the POSIX functions, not the win32 ones.
PRs are very welcome! The main way to contribute topath-browserify is by porting features, bugfixes and tests from Node.js. Ideally, code contributions to this module are copy-pasted from Node.js and transpiled to ES5, rather than reimplemented from scratch. Matching the Node.js code as closely as possible makes maintenance simpler when new changes land in Node.js.This module intends to provide exactly the same API as Node.js, so features that are not available in the corepath module will not be accepted. Feature requests should instead be directed atnodejs/node and will be added to this module once they are implemented in Node.js.
If there is a difference in behaviour between Node.js'spath module and this module, please open an issue!
About
The path module from Node.js for browsers
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
