🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.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.2
to
1.2.3
+37
app-root-path/index.d.ts
// Type definitions for app-root-path 1.2.1
// Project: https://github.com/inxilpro/node-app-root-path
// Definitions by: Shant Marouti <https://github.com/shantmarouti>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface RootPath {
/**
* Application root directory absolute path
* @type {string}
*/
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;
+2
-2
{
"name": "@types/app-root-path",
"version": "1.2.2",
"version": "1.2.3",
"description": "TypeScript definitions for app-root-path 1.2.1",

@@ -14,3 +14,3 @@ "license": "MIT",

"dependencies": {},
"typings": "app-root-path.d.ts"
"typings": "index.d.ts"
}

@@ -11,9 +11,9 @@ # Installation

Additional Details
* Last updated: Fri, 19 Aug 2016 15:08:18 GMT
* File structure: DeclareModule
* Last updated: Mon, 22 Aug 2016 18:53:13 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
* Global values: none
* Global values: RootPath
# Credits
These definitions were written by Shant Marouti <https://github.com/shantmarouti>.
{
"authors": "Shant Marouti <https://github.com/shantmarouti>",
"definitionFilename": "app-root-path.d.ts",
"definitionFilename": "index.d.ts",
"libraryDependencies": [],

@@ -13,4 +13,6 @@ "moduleDependencies": [],

"sourceBranch": "types-2.0",
"kind": "DeclareModule",
"globals": [],
"kind": "ProperModule",
"globals": [
"RootPath"
],
"declaredModules": [

@@ -20,6 +22,6 @@ "app-root-path"

"files": [
"app-root-path.d.ts"
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "2cfed8535485c54839a37d309d22d536b23cd5dc15d3b73cbca6bc735cfb5763"
"contentHash": "1035f6eabbd846b6f43546cfbcd01c175dd720f1551d18b975dec81bb7862100"
}
// Type definitions for app-root-path 1.2.1
// Project: https://github.com/inxilpro/node-app-root-path
// Definitions by: Shant Marouti <https://github.com/shantmarouti>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'app-root-path' {
interface RootPath {
/**
* Application root directory absolute path
* @type {string}
*/
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;
}
var RootPath: RootPath;
export = RootPath;
}