# rpcm-root-require

> Very simple extension to the module "app-root-path" (all credits to the author)

Latest version **1.0.1** (published 2022-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install rpcm-root-require
pnpm add rpcm-root-require
yarn add rpcm-root-require
bun add rpcm-root-require
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-07-20 |
| First published | 2022-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | rpcm |
| Maintainers | rpcm |
| Keywords | root, path, require |

## Links

- npm: https://www.npmjs.com/package/rpcm-root-require
- npm.io page: https://npm.io/package/rpcm-root-require

## Dependencies (1)

- [app-root-path](https://npm.io/package/app-root-path.md) ^3.0.0

## 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
- [@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
- [tg-resolve](https://npm.io/package/tg-resolve.md) — 176 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-07-20
- 1.0.0 — 2022-07-19

## README

# rpcm-root-require

> Very simple extension to the module "app-root-path" (all credits to the author)

Require the app files without the the need of knowing the root folder, just add the relative path to the script.

The module also provides a property with the root path.

## Install

```bash
npm install --save app-root-path
npm install --save rpcm-root-require
```

## Usage

```js
const rootRequire = require("rpcm-root-require");
const myModule1 = rootRequire("folder1/module1");
const myModule2 = rootRequire("another-folder/module2");

const rootPath = rootRequire.rootPath;
```

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