Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/find-cache-dir

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/find-cache-dir - npm Package Compare versions

Comparing version 3.2.1 to 5.0.0

32

find-cache-dir/package.json
{
"name": "@types/find-cache-dir",
"version": "3.2.1",
"description": "TypeScript definitions for find-cache-dir",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-cache-dir",
"version": "5.0.0",
"description": "Stub TypeScript definitions entry for find-cache-dir, which provides its own types definitions",
"main": "",
"scripts": {},
"license": "MIT",
"contributors": [
{
"name": "BendingBender",
"url": "https://github.com/BendingBender",
"githubUsername": "BendingBender"
},
{
"name": "Piotr Błażejewicz",
"url": "https://github.com/peterblazejewicz",
"githubUsername": "peterblazejewicz"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/find-cache-dir"
"dependencies": {
"find-cache-dir": "*"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "334de16107158efff7e9ae59f7f60bfce908bd9097d9796e9dd9a62c13c018fe",
"typeScriptVersion": "3.6"
"deprecated": "This is a stub types definition. find-cache-dir provides its own type definitions, so you do not need this installed."
}

@@ -1,76 +0,3 @@

# Installation
> `npm install --save @types/find-cache-dir`
This is a stub types definition for @types/find-cache-dir (https://github.com/sindresorhus/find-cache-dir#readme).
# Summary
This package contains type definitions for find-cache-dir (https://github.com/avajs/find-cache-dir#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-cache-dir.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/find-cache-dir/index.d.ts)
````ts
// Type definitions for find-cache-dir 3.2
// Project: https://github.com/avajs/find-cache-dir#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = findCacheDir;
/**
* Finds the cache directory using the supplied options.
* The algorithm tries to find a `package.json` file, searching every parent directory of the `cwd` specified
* (or implied from other options). It returns a `string` containing the absolute path to the cache directory,
* or `undefined` if `package.json` was never found or if the `node_modules` directory is unwritable.
*/
declare function findCacheDir(options: findCacheDir.OptionsWithThunk): ((...pathParts: string[]) => string) | undefined;
declare function findCacheDir(options: findCacheDir.Options): string | undefined;
declare namespace findCacheDir {
interface Options {
/**
* Should be the same as your project name in `package.json`.
*/
name: string;
/**
* An array of files that will be searched for a common parent directory.
* This common parent directory will be used in lieu of the `cwd` option below.
*/
files?: string | string[] | undefined;
/**
* Directory to start searching for a `package.json` from.
*/
cwd?: string | undefined;
/**
* If `true`, the directory will be created synchronously before returning.
* @default false
*/
create?: boolean | undefined;
/**
* If `true`, this modifies the return type to be a function that is a thunk for `path.join(theFoundCacheDirectory)`.
* @default false
*/
thunk?: boolean | undefined;
}
interface OptionsWithThunk extends Options {
/**
* If `true`, this modifies the return type to be a function that is a thunk for `path.join(theFoundCacheDirectory)`.
* @default false
*/
thunk: true;
}
}
````
### Additional Details
* Last updated: Tue, 06 Jul 2021 20:32:58 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
find-cache-dir provides its own type definitions, so you don't need @types/find-cache-dir installed!
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc