summaryrefslogtreecommitdiffstats
path: root/node_modules/find-cache-dir
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/find-cache-dir
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/find-cache-dir')
-rw-r--r--node_modules/find-cache-dir/index.js34
-rw-r--r--node_modules/find-cache-dir/license21
-rw-r--r--node_modules/find-cache-dir/package.json79
-rw-r--r--node_modules/find-cache-dir/readme.md113
4 files changed, 0 insertions, 247 deletions
diff --git a/node_modules/find-cache-dir/index.js b/node_modules/find-cache-dir/index.js
deleted file mode 100644
index 2502e44..0000000
--- 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 ad5d021..0000000
--- 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 20ee7ad..0000000
--- a/node_modules/find-cache-dir/package.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_from": "find-cache-dir@^1.0.0",
- "_id": "find-cache-dir@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=",
- "_location": "/find-cache-dir",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "find-cache-dir@^1.0.0",
- "name": "find-cache-dir",
- "escapedName": "find-cache-dir",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/babel-loader"
- ],
- "_resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz",
- "_shasum": "9288e3e9e3cc3748717d39eade17cf71fc30ee6f",
- "_spec": "find-cache-dir@^1.0.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/babel-loader",
- "author": {
- "name": "James Talmage",
- "email": "james@talmage.io",
- "url": "github.com/jamestalmage"
- },
- "bugs": {
- "url": "https://github.com/avajs/find-cache-dir/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "commondir": "^1.0.1",
- "make-dir": "^1.0.0",
- "pkg-dir": "^2.0.0"
- },
- "deprecated": false,
- "description": "My well-made module",
- "devDependencies": {
- "ava": "^0.19.1",
- "coveralls": "^2.11.6",
- "del": "^2.2.2",
- "nyc": "^10.3.2",
- "xo": "^0.18.2"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/avajs/find-cache-dir#readme",
- "keywords": [
- "cache",
- "directory",
- "dir",
- "caching",
- "find",
- "search"
- ],
- "license": "MIT",
- "name": "find-cache-dir",
- "nyc": {
- "reporter": [
- "lcov",
- "text"
- ]
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/avajs/find-cache-dir.git"
- },
- "scripts": {
- "test": "xo && nyc ava"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/find-cache-dir/readme.md b/node_modules/find-cache-dir/readme.md
deleted file mode 100644
index 447d620..0000000
--- 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)