# register-module

> Register a module with Node.js for more concise imports

Latest version **0.0.2** (published 2016-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install register-module
pnpm add register-module
yarn add register-module
bun add register-module
```

## 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.2 |
| Published | 2016-07-09 |
| First published | 2016-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vinson Chuong |
| Maintainers | vinsonchuong |
| Keywords | require, module, NODE_PATH |

## Links

- npm: https://www.npmjs.com/package/register-module
- Repository: https://github.com/vinsonchuong/register-module
- Issues: https://github.com/vinsonchuong/register-module/issues
- npm.io page: https://npm.io/package/register-module

## 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.2 (latest) — 2016-07-09
- 0.0.1 — 2016-07-06

## README

# register-module
Register a module with Node.js for more concise imports.

## Installing
`register-module` is available as an
[npm package](https://www.npmjs.com/package/register-module).

## Usage
```js
require('register-module')({
  name: 'project',
  path: '/home/vinsonchuong/project',
  main: 'entry.js'
});

// Resolves to '/home/vinsonchuong/project/entry.js'
require('project');

// Resolves to '/home/vinsonchuong/project/lib.js'
require('project/lib');
```

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