diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/find-cache-dir | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) | |
download | wallet-core-cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585.tar.xz |
remove node_modules
Diffstat (limited to 'node_modules/find-cache-dir')
-rw-r--r-- | node_modules/find-cache-dir/index.js | 34 | ||||
-rw-r--r-- | node_modules/find-cache-dir/license | 21 | ||||
-rw-r--r-- | node_modules/find-cache-dir/package.json | 47 | ||||
-rw-r--r-- | node_modules/find-cache-dir/readme.md | 113 |
4 files changed, 0 insertions, 215 deletions
diff --git a/node_modules/find-cache-dir/index.js b/node_modules/find-cache-dir/index.js deleted file mode 100644 index 2502e4433..000000000 --- a/node_modules/find-cache-dir/index.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; -const path = require('path'); -const commonDir = require('commondir'); -const pkgDir = require('pkg-dir'); -const makeDir = require('make-dir'); - -module.exports = options => { - const name = options.name; - let dir = options.cwd; - - if (options.files) { - dir = commonDir(dir, options.files); - } else { - dir = dir || process.cwd(); - } - - dir = pkgDir.sync(dir); - - if (dir) { - dir = path.join(dir, 'node_modules', '.cache', name); - - if (dir && options.create) { - makeDir.sync(dir); - } - - if (options.thunk) { - return function () { - return path.join.apply(path, [dir].concat(Array.prototype.slice.call(arguments))); - }; - } - } - - return dir; -}; diff --git a/node_modules/find-cache-dir/license b/node_modules/find-cache-dir/license deleted file mode 100644 index ad5d021ed..000000000 --- a/node_modules/find-cache-dir/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) James Talmage <james@talmage.io> (github.com/jamestalmage) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/find-cache-dir/package.json b/node_modules/find-cache-dir/package.json deleted file mode 100644 index bf5a64db1..000000000 --- a/node_modules/find-cache-dir/package.json +++ /dev/null @@ -1,47 +0,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" - ] - } -} diff --git a/node_modules/find-cache-dir/readme.md b/node_modules/find-cache-dir/readme.md deleted file mode 100644 index 447d62020..000000000 --- a/node_modules/find-cache-dir/readme.md +++ /dev/null @@ -1,113 +0,0 @@ -# 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) - -> Finds the common standard cache directory - -Recently the [`nyc`](https://github.com/bcoe/nyc) and [`AVA`](https://ava.li) projects decided to standardize on a common directory structure for storing cache information: - -```sh -# nyc -./node_modules/.cache/nyc - -# ava -./node_modules/.cache/ava - -# your-module -./node_modules/.cache/your-module -``` - -This module makes it easy to correctly locate the cache directory according to this shared spec. If this pattern becomes ubiquitous, clearing the cache for multiple dependencies becomes easy and consistent: - -``` -rm -rf ./node_modules/.cache -``` - -If you decide to adopt this pattern, please file a PR adding your name to the list of adopters below. - - -## Install - -``` -$ npm install --save find-cache-dir -``` - - -## Usage - -```js -const findCacheDir = require('find-cache-dir'); - -findCacheDir({name: 'unicorns'}); -//=> '/user/path/node-modules/.cache/unicorns' -``` - - -## API - -### findCacheDir([options]) - -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 `null` if `package.json` was never found. - -#### options - -##### name - -*Required*<br> -Type: `string` - -Should be the same as your project name in `package.json`. - -##### files - -Type: `Array` `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. - -##### cwd - -Type: `string`<br> -Default `process.cwd()` - -Directory to start searching for a `package.json` from. - -##### create - -Type: `boolean`<br> -Default `false` - -If `true`, the directory will be created synchronously before returning. - -##### thunk - -Type: `boolean`<br> -Default `false` - -If `true`, this modifies the return type to be a function that is a thunk for `path.join(theFoundCacheDirectory)`. - -```js -const thunk = findCacheDir({name: 'foo', thunk: true}); - -thunk(); -//=> '/some/path/node_modules/.cache/foo' - -thunk('bar.js') -//=> '/some/path/node_modules/.cache/foo/bar.js' - -thunk('baz', 'quz.js') -//=> '/some/path/node_modules/.cache/foo/baz/quz.js' -``` - -This is helpful for actually putting actual files in the cache! - - -## Adopters - -- [`AVA`](https://ava.li) -- [`nyc`](https://github.com/bcoe/nyc) -- [`babel-loader`](https://github.com/babel/babel-loader) -- [`eslint-loader`](https://github.com/MoOx/eslint-loader) -- [`Phenomic`](https://phenomic.io) - - -## License - -MIT © [James Talmage](https://github.com/jamestalmage) |