@types/cached-path-relative
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/cached-path-relative

Summary

This package contains type definitions for cached-path-relative (https://github.com/ashaffer/cached-path-relative).

Details

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

index.d.ts

/**
 * Memoize the results of the path.relative function. path.relative can be an expensive operation
 * if it happens a lot, and its results shouldn't change for the same arguments.
 * Use it just like your normal path.relative, but it's memoized.
 */
declare function cachedPathRelative(from: string, to: string): string;

export = cachedPathRelative;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by TeamworkGuy2.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cached-path-relative

Weekly Downloads

676

Version

1.0.2

License

MIT

Unpacked Size

3.35 kB

Total Files

5

Last publish

Collaborators

  • types