basant307/AI_Governance_Project
045
1# path-browserify [](https://travis-ci.org/browserify/path-browserify)2 3> The `path` module from Node.js for browsers4 5This implements the Node.js [`path`][path] module for environments that do not have it, like browsers.6 7> `path-browserify` currently matches the **Node.js 10.3** API.8 9## Install10 11You usually do not have to install `path-browserify` yourself! If your code runs in Node.js, `path` is built in. If your code runs in the browser, bundlers like [browserify](https://github.com/browserify/browserify) or [webpack](https://github.com/webpack/webpack) include the `path-browserify` module by default.12 13But if none of those apply, with npm do:14 15```16npm install path-browserify17```18 19## Usage20 21```javascript22var path = require('path')23 24var filename = 'logo.png';25var logo = path.join('./assets/img', filename);26document.querySelector('#logo').src = logo;27```28 29## API30 31See the [Node.js path docs][path]. `path-browserify` currently matches the Node.js 10.3 API.32`path-browserify` only implements the POSIX functions, not the win32 ones.33 34## Contributing35 36PRs are very welcome! The main way to contribute to `path-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.37This module intends to provide exactly the same API as Node.js, so features that are not available in the core `path` module will not be accepted. Feature requests should instead be directed at [nodejs/node](https://github.com/nodejs/node) and will be added to this module once they are implemented in Node.js.38 39If there is a difference in behaviour between Node.js's `path` module and this module, please open an issue!40 41## License42 43[MIT](./LICENSE)44 45[path]: https://nodejs.org/docs/v10.3.0/api/path.html46 