🚀. 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 - npm Package Compare versions

Comparing version
1.2.8
to
3.1.0
+7
-20
app-root-path/package.json
{
"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;