🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@types/resolve-path

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/resolve-path

TypeScript definitions for resolve-path

ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version
1.4.3
Version published
Weekly downloads
12K
41.02%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/resolve-path

Summary

This package contains type definitions for resolve-path (https://github.com/pillarjs/resolve-path#readme).

Details

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

index.d.ts

/**
 * Resolve a relative path against `process.cwd()` (the process's current working directory) and return an absolute path.
 * *This will throw* if the resulting resolution seems malicious. The following are malicious:
 *
 *  * The relative path is an absolute path
 *  * The relative path contains a NULL byte
 *  * The relative path resolves to a path outside of process.cwd()
 *  * The relative path traverses above process.cwd() and back down
 */
declare function resolvePath(relativePath: string): string;

/**
 * Resolve a relative path against the provided root path and return an absolute path.
 * *This will throw* if the resulting resolution seems malicious. The following are malicious:
 *
 *  * The relative path is an absolute path
 *  * The relative path contains a NULL byte
 *  * The relative path resolves to a path outside of the root path
 *  * The relative path traverses above the root and back down
 */
// tslint:disable-next-line unified-signatures
declare function resolvePath(rootPath: string, relativePath: string): string;

export = resolvePath;

Additional Details

  • Last updated: Mon, 07 Oct 2024 22:38:10 GMT
  • Dependencies: none

Credits

These definitions were written by .

FAQs

Package last updated on 07 Oct 2024

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