-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
114 lines (114 loc) · 5.72 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"_args": [
[
{
"raw": "find-cache-dir@^0.1.1",
"scope": null,
"escapedName": "find-cache-dir",
"name": "find-cache-dir",
"rawSpec": "^0.1.1",
"spec": ">=0.1.1 <0.2.0",
"type": "range"
},
"/Users/benjamincoe/bcoe/nyc"
],
[
{
"raw": "find-cache-dir@0.1.1",
"scope": null,
"escapedName": "find-cache-dir",
"name": "find-cache-dir",
"rawSpec": "0.1.1",
"spec": "0.1.1",
"type": "version"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "find-cache-dir@>=0.1.1 <0.2.0",
"_id": "find-cache-dir@0.1.1",
"_inCache": true,
"_location": "/firebase-admin/nyc/find-cache-dir",
"_nodeVersion": "5.2.0",
"_npmUser": {
"name": "jamestalmage",
"email": "james@talmage.io"
},
"_npmVersion": "3.5.2",
"_phantomChildren": {},
"_requested": {
"raw": "find-cache-dir@0.1.1",
"scope": null,
"escapedName": "find-cache-dir",
"name": "find-cache-dir",
"rawSpec": "0.1.1",
"spec": "0.1.1",
"type": "version"
},
"_requiredBy": [
"/firebase-admin/nyc"
],
"_resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-0.1.1.tgz",
"_shasum": "c8defae57c8a52a8a784f9e31c57c742e993a0b9",
"_shrinkwrap": null,
"_spec": "find-cache-dir@0.1.1",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "James Talmage",
"email": "james@talmage.io",
"url": "github.com/jamestalmage"
},
"bugs": {
"url": "https://github.com/jamestalmage/find-cache-dir/issues"
},
"dependencies": {
"commondir": "^1.0.1",
"mkdirp": "^0.5.1",
"pkg-dir": "^1.0.0"
},
"description": "My well-made module",
"devDependencies": {
"ava": "^0.8.0",
"coveralls": "^2.11.6",
"nyc": "^5.0.1",
"rimraf": "^2.5.0",
"xo": "^0.12.1"
},
"directories": {},
"dist": {
"shasum": "c8defae57c8a52a8a784f9e31c57c742e993a0b9",
"tarball": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-0.1.1.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"gitHead": "722fff2aa8fbf666d37192917d2e1fb0e1287489",
"homepage": "https://github.com/jamestalmage/find-cache-dir#readme",
"keywords": [
"cache",
"directory",
"dir"
],
"license": "MIT",
"maintainers": [
{
"name": "jamestalmage",
"email": "james@talmage.io"
}
],
"name": "find-cache-dir",
"optionalDependencies": {},
"readme": "# find-cache-dir [![Build Status](https://travis-ci.org/jamestalmage/find-cache-dir.svg?branch=master)](https://travis-ci.org/jamestalmage/find-cache-dir) [![Coverage Status](https://coveralls.io/repos/jamestalmage/find-cache-dir/badge.svg?branch=master&service=github)](https://coveralls.io/github/jamestalmage/find-cache-dir?branch=master)\n\n> Finds the common standard cache directory.\n\nRecently the [`nyc`](https://www.npmjs.com/package/nyc) and [`AVA`](https://www.npmjs.com/package/ava) projects decided to standardize on a common directory structure for storing cache information: \n\n```sh\n# nyc\n./node_modules/.cache/nyc\n\n# ava\n./node_modules/.cache/ava\n\n# your-module\n./node_modules/.cache/your-module\n```\n\nThis 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:\n \n```\nrm -rf ./node_modules/.cache\n```\n\nIf you decide to adopt this pattern, please file a PR adding your name to the list of adopters below. \n\n\n## Install\n\n```\n$ npm install --save find-cache-dir\n```\n\n\n## Usage\n\n```js\nconst findCacheDir = require('find-cache-dir');\n\nfindCacheDir({name: 'unicorns'});\n//=> /user/path/node-modules/.cache/unicorns\n```\n\n\n## API\n\n### findCacheDir([options])\n\nFinds the cache dir 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.\n\n#### options\n\n##### name\n\n*Required* \nType: `string` \n\nThis should be the same as your project name in `package.json`.\n\n##### files\n\nType: `array` of `string` \n\nAn 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.\n\n##### cwd\n\nType: `string` \nDefault `process.cwd()`\n\nThe directory to start searching for a `package.json` from.\n\n##### create\n\nType: `boolean` \nDefault `false`\n\nIf `true`, the directory will be created synchronously before returning.\n\n##### thunk\n\nType: `boolean` \nDefault `false`\n\nIf `true`, this modifies the return type to be a function that is a thunk for `path.join(theFoundCacheDirectory)`.\n\n```js\nconst thunk = findCacheDir({name: 'foo', thunk: true});\n\nthunk();\n//=> /some/path/node_modules/.cache/foo\n\nthunk('bar.js')\n//=> /some/path/node_modules/.cache/foo/bar.js\n\nthunk('baz', 'quz.js')\n//=> /some/path/node_modules/.cache/foo/baz/quz.js\n```\n\nThis is helpful for actually putting actual files in the cache!\n\n## Adopters\n\n- [`NYC`](https://www.npmjs.com/package/nyc)\n- [`AVA`](https://www.npmjs.com/package/ava)\n\n## License\n\nMIT © [James Talmage](http://github.com/jamestalmage)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/jamestalmage/find-cache-dir.git"
},
"scripts": {
"test": "xo && nyc --reporter=lcov --reporter=text ava"
},
"version": "0.1.1"
}