# node-path

> Extends module paths with process.mainModule paths

Latest version **0.0.3** (published 2013-10-19) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2013-10-19 |
| First published | 2013-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Cristian Douce |
| Maintainers | cristiandouce |
| Keywords | module, path, extend |

## Links

- npm: https://www.npmjs.com/package/node-path
- Repository: git@github.com:cristiandouce/node-path
- Issues: https://github.com/cristiandouce/node-path/issues
- npm.io page: https://npm.io/package/node-path

## 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

- 0.0.3 (latest) — 2013-10-19
- 0.0.2 — 2013-10-19
- 0.0.1 — 2013-10-18

## README

# node-path
This is module is a simple hack to allow old `require.paths` deprecated method.

## Install

`$ npm install node-path`

## Usage

```javascript
// On process.mainModule; eg: node index.js
require('node-path')(module, ['../libs', '../vendor']);

// On a child module
require('node-path')(module);

var myLib = require('my-lib-in-libs');
var myVendor = require('my-vendor-in-vendors');
```

## Todo

* Add some tests
* Improve extend method

## Licence

MIT

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