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

find-cache-dir

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-cache-dir - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

8

index.js

@@ -7,4 +7,4 @@ 'use strict';

module.exports = options => {
const name = options.name;
module.exports = (options = {}) => {
const {name} = options;
let dir = options.cwd;

@@ -28,5 +28,3 @@

if (options.thunk) {
return function () {
return path.join.apply(path, [dir].concat(Array.prototype.slice.call(arguments)));
};
return (...args) => path.join(dir, ...args);
}

@@ -33,0 +31,0 @@ }

{
"name": "find-cache-dir",
"version": "1.0.0",
"description": "My well-made module",
"license": "MIT",
"repository": "avajs/find-cache-dir",
"author": {
"name": "James Talmage",
"email": "james@talmage.io",
"url": "github.com/jamestalmage"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && nyc ava"
},
"files": [
"index.js"
],
"keywords": [
"cache",
"directory",
"dir",
"caching",
"find",
"search"
],
"dependencies": {
"commondir": "^1.0.1",
"make-dir": "^1.0.0",
"pkg-dir": "^2.0.0"
},
"devDependencies": {
"ava": "^0.19.1",
"coveralls": "^2.11.6",
"del": "^2.2.2",
"nyc": "^10.3.2",
"xo": "^0.18.2"
},
"nyc": {
"reporter": [
"lcov",
"text"
]
}
"name": "find-cache-dir",
"version": "2.0.0",
"description": "Finds the common standard cache directory",
"license": "MIT",
"repository": "avajs/find-cache-dir",
"engines": {
"node": ">=6"
},
"scripts": {
"test": "xo && nyc ava"
},
"files": [
"index.js"
],
"keywords": [
"cache",
"directory",
"dir",
"caching",
"find",
"search"
],
"dependencies": {
"commondir": "^1.0.1",
"make-dir": "^1.0.0",
"pkg-dir": "^3.0.0"
},
"devDependencies": {
"ava": "^0.25.0",
"coveralls": "^3.0.1",
"del": "^3.0.0",
"nyc": "^12.0.2",
"xo": "^0.21.1"
},
"nyc": {
"reporter": [
"lcov",
"text"
]
}
}

@@ -30,3 +30,3 @@ # find-cache-dir [![Build Status](https://travis-ci.org/avajs/find-cache-dir.svg?branch=master)](https://travis-ci.org/avajs/find-cache-dir) [![Coverage Status](https://coveralls.io/repos/github/avajs/find-cache-dir/badge.svg?branch=master)](https://coveralls.io/github/avajs/find-cache-dir?branch=master)

```
$ npm install --save find-cache-dir
$ npm install find-cache-dir
```

@@ -53,2 +53,4 @@

Type: `Object`
##### name

@@ -63,3 +65,3 @@

Type: `Array` `string
Type: `Array` `string`

@@ -112,2 +114,3 @@ 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.

- [`Phenomic`](https://phenomic.io)
- [`javascripthon-loader`](https://github.com/Beg-in/javascripthon-loader)

@@ -117,2 +120,2 @@

MIT © [James Talmage](https://github.com/jamestalmage)
MIT

Sorry, the diff of this file is not supported yet

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