npm.io
0.1.4 • Published 2 years ago

@types/app-root-dir

Licence
MIT
Version
0.1.4
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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 2204 GMT
  • Dependencies: none

Credits

These definitions were written by .