@types/app-root-path
Advanced tools
| { | ||
| "name": "@types/app-root-path", | ||
| "version": "1.2.8", | ||
| "description": "TypeScript definitions for app-root-path", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/app-root-path", | ||
| "version": "3.1.0", | ||
| "description": "Stub TypeScript definitions entry for app-root-path, which provides its own types definitions", | ||
| "main": "", | ||
| "scripts": {}, | ||
| "license": "MIT", | ||
| "contributors": [ | ||
| { | ||
| "name": "Shant Marouti", | ||
| "githubUsername": "shantmarouti", | ||
| "url": "https://github.com/shantmarouti" | ||
| } | ||
| ], | ||
| "main": "", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/app-root-path" | ||
| "dependencies": { | ||
| "app-root-path": "*" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": {}, | ||
| "typesPublisherContentHash": "c66cb02e14211b2cf0f6f253bf03c960d2cfbe931373dc2de7511375c453a264", | ||
| "typeScriptVersion": "4.5" | ||
| "deprecated": "This is a stub types definition. app-root-path provides its own type definitions, so you do not need this installed." | ||
| } |
@@ -1,49 +0,3 @@ | ||
| # Installation | ||
| > `npm install --save @types/app-root-path` | ||
| This is a stub types definition for @types/app-root-path (https://github.com/inxilpro/node-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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/app-root-path/index.d.ts) | ||
| ````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: Mon, 06 Nov 2023 22:41:04 GMT | ||
| * Dependencies: none | ||
| # Credits | ||
| These definitions were written by [Shant Marouti](https://github.com/shantmarouti). | ||
| app-root-path provides its own type definitions, so you don't need @types/app-root-path installed! |
| 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; |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1778
-54.62%1
Infinity%3
-25%0
-100%2
100%1
Infinity%1
Infinity%3
-94%1
Infinity%+ Added
+ Added