# @types/app-root-dir

> TypeScript definitions for app-root-dir

Latest version **0.1.4** (published 2023-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/app-root-dir
pnpm add @types/app-root-dir
yarn add @types/app-root-dir
bun add @types/app-root-dir
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2023-11-06 |
| First published | 2018-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/app-root-dir
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/app-root-dir
- npm.io page: https://npm.io/package/@types/app-root-dir

## Recent versions

- 0.1.4 (latest) — 2023-11-06
- 0.1.1 (ts3.8) — 2021-12-23
- 0.1.0 (ts2.0) — 2018-02-19
- 0.1.3 — 2023-10-17
- 0.1.2 — 2023-09-22

## README

# Installation
> `npm install --save @types/app-root-dir`

# Summary
This package contains type definitions for app-root-dir (https://github.com/philidem/node-app-root-dir).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/app-root-dir.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/app-root-dir/index.d.ts)
````ts
interface AppRootDir {
    // Get the application's root directory
    get(): string;
    /**
     * Set the application's root directory
     *    this will set a global so that no matter
     *    how many instances of app-root-dir module are installed,
     *    they will all return the same directory
     */
    set(dirname: string): void;
}

declare const AppRootDir: AppRootDir;

export = AppRootDir;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: none

# Credits
These definitions were written by .

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