🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@types/app-root-path

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/app-root-path

TypeScript definitions for app-root-path

npmnpm
Version
1.2.7
Version published
Weekly downloads
99K
-35.21%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/app-root-path

Summary

This package contains type definitions for app-root-path (https://github.com/inxilpro/node-app-root-path).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/app-root-path.

index.d.ts

interface RootPath {
    /**
     * Application root directory absolute path
     */
    path: string;

    /**
     * Resolves relative path from root to absolute path
     * @param {string} pathToModule
     * @returns {string}
     */
    resolve(pathToModule: string): string;

    /**
     * Resolve module by relative addressing from root
     * @param {string} pathToModule
     * @returns {*}
     */
    require(pathToModule: string): any;

    /**
     * Explicitly set root path
     * @param {string} explicitlySetPath
     */
    setPath(explicitlySetPath: string): void;

    toString(): string;
}
declare const RootPath: RootPath;
export = RootPath;

Additional Details

  • Last updated: Tue, 17 Oct 2023 22:10:13 GMT
  • Dependencies: none

Credits

These definitions were written by Shant Marouti.

FAQs

Package last updated on 17 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts