# path-browserify

> the path module from node core for browsers

Latest version **1.0.1** (published 2020-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install path-browserify
pnpm add path-browserify
yarn add path-browserify
bun add path-browserify
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-03-03 |
| First published | 2013-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/path-browserify) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 53 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 192 |
| Author | James Halliday |
| Maintainers | ahdinosaur, anandthakker, ashaffer88, balupton, bpostlethwaite, bret, cwmma, defunctzombie, dominictarr, elnounch, emilbayes, feross, forbeslindesay, fpereira1, garann, gkatsev, goto-bus-stop, hughsk, indutny, jmm, jprichardson, jryans, leichtgewicht, lukechilds, mafintosh, mattdesl, maxogden, mellowmelon, parshap, pkrumins, sethvincent, stevemao, substack, tehshrike, terinjokes, thlorenz, ungoldman, yerkopalma, yoshuawuyts, zertosh |
| Keywords | browser, browserify, path |

## Links

- npm: https://www.npmjs.com/package/path-browserify
- Repository: https://github.com/browserify/path-browserify
- Issues: https://github.com/browserify/path-browserify/issues
- npm.io page: https://npm.io/package/path-browserify

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-03-03
- 0.0.1 — 2018-06-20
- 1.0.0 — 2018-06-06
- 0.0.0 — 2013-12-03

## README

# path-browserify [![Build Status](https://travis-ci.org/browserify/path-browserify.png?branch=master)](https://travis-ci.org/browserify/path-browserify)

> The `path` module from Node.js for browsers

This implements the Node.js [`path`][path] module for environments that do not have it, like browsers.

> `path-browserify` currently matches the **Node.js 10.3** API.

## Install

You 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.

But if none of those apply, with npm do:

```
npm install path-browserify
```

## Usage

```javascript
var path = require('path')

var filename = 'logo.png';
var logo = path.join('./assets/img', filename);
document.querySelector('#logo').src = logo;
```

## API

See the [Node.js path docs][path]. `path-browserify` currently matches the Node.js 10.3 API.
`path-browserify` only implements the POSIX functions, not the win32 ones.

## Contributing

PRs 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.
This 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.

If there is a difference in behaviour between Node.js's `path` module and this module, please open an issue!

## License

[MIT](./LICENSE)

[path]: https://nodejs.org/docs/v10.3.0/api/path.html

---
_Source: https://npm.io/package/path-browserify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
