# @everymundo/global-root-dir

> Sets a global variable variable __rootdir

Latest version **1.1.1** (published 2019-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @everymundo/global-root-dir
pnpm add @everymundo/global-root-dir
yarn add @everymundo/global-root-dir
bun add @everymundo/global-root-dir
```

## 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.1.1 |
| Published | 2019-05-28 |
| First published | 2018-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.10.2 |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Santana |
| Maintainers | alexandprivate, anahiem, avivero93, ballester, caviola, christopherepm, danielsan, davidxl, devrchancay, eduardomundo, emdavidmoreno, erlin, ernestocarrasco, everymundo-admin, front10devs, gallegogt, hdelcastillo, herlin, hugopalomares, jonmorazav, joseivansandoya, karinfdez, mvcruzata, neilgoldman, raymer, yartiles |

## Links

- npm: https://www.npmjs.com/package/@everymundo/global-root-dir
- Repository: https://github.com/EveryMundo/global-root-dir
- Homepage: https://github.com/EveryMundo/global-root-dir#readme
- Issues: https://github.com/EveryMundo/global-root-dir/issues
- npm.io page: https://npm.io/package/@everymundo/global-root-dir

## Recent versions

- 1.1.1 (latest) — 2019-05-28
- 1.1.0 — 2018-03-21
- 1.0.0 — 2018-03-14

## README

# @everymundo/global-root-dir
Sets a global variable variable __rootdir

## Install
```sh
npm install @everymundo/global-root-dir
```

## Usage
```js
// this will use process.pwd() as value
require('@everymundo/global-root-dir').setGlobalRootDir()
console.log(global.__rootdir);
console.log({__rootdir});

// if you prefer you can pass a directory
require('@everymundo/global-root-dir').setGlobalRootDir(__dirname)
console.log(global.__rootdir);
console.log({__rootdir});
```

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