Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/fragment-cache.json

raw
1 {
2 "_id": "fragment-cache",
3 "_rev": "3-5dc42d53a72f036b5f9ed23e7278cdef",
4 "name": "fragment-cache",
5 "description": "A cache for managing namespaced sub-caches",
6 "dist-tags": {
7 "latest": "0.2.1"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "fragment-cache",
12 "description": "A cache for managing namespaced sub-caches",
13 "version": "0.1.0",
14 "homepage": "https://github.com/jonschlinkert/fragment-cache",
15 "author": {
16 "name": "Jon Schlinkert",
17 "url": "https://github.com/jonschlinkert"
18 },
19 "repository": {
20 "type": "git",
21 "url": "git+https://github.com/jonschlinkert/fragment-cache.git"
22 },
23 "bugs": {
24 "url": "https://github.com/jonschlinkert/fragment-cache/issues"
25 },
26 "license": "MIT",
27 "files": [
28 "index.js"
29 ],
30 "main": "index.js",
31 "engines": {
32 "node": ">=4.0"
33 },
34 "scripts": {
35 "test": "mocha"
36 },
37 "dependencies": {
38 "map-cache": "^0.2.1"
39 },
40 "devDependencies": {
41 "gulp": "^3.9.1",
42 "gulp-eslint": "^2.0.0",
43 "gulp-format-md": "^0.1.9",
44 "gulp-istanbul": "^0.10.4",
45 "gulp-mocha": "^2.2.0",
46 "mocha": "^2.4.5"
47 },
48 "keywords": [
49 "cache",
50 "fragment"
51 ],
52 "verb": {
53 "plugins": [
54 "gulp-format-md"
55 ],
56 "reflinks": [
57 "verb",
58 "map-cache"
59 ],
60 "related": {
61 "list": [
62 "base",
63 "map-cache"
64 ]
65 },
66 "layout": "default",
67 "toc": false,
68 "tasks": [
69 "readme"
70 ],
71 "lint": {
72 "reflinks": true
73 }
74 },
75 "_id": "[email protected]",
76 "_shasum": "8f8d04a94eec9510a22b3d1c6a2b46b1144988c9",
77 "_from": ".",
78 "_npmVersion": "3.6.0",
79 "_nodeVersion": "5.5.0",
80 "_npmUser": {
81 "name": "jonschlinkert",
82 "email": "[email protected]"
83 },
84 "maintainers": [
85 {
86 "name": "jonschlinkert",
87 "email": "[email protected]"
88 }
89 ],
90 "dist": {
91 "shasum": "8f8d04a94eec9510a22b3d1c6a2b46b1144988c9",
92 "tarball": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.1.0.tgz"
93 },
94 "_npmOperationalInternal": {
95 "host": "packages-16-east.internal.npmjs.com",
96 "tmp": "tmp/fragment-cache-0.1.0.tgz_1462276976394_0.7934316475875676"
97 },
98 "directories": {}
99 },
100 "0.2.0": {
101 "name": "fragment-cache",
102 "description": "A cache for managing namespaced sub-caches",
103 "version": "0.2.0",
104 "homepage": "https://github.com/jonschlinkert/fragment-cache",
105 "author": {
106 "name": "Jon Schlinkert",
107 "url": "https://github.com/jonschlinkert"
108 },
109 "repository": {
110 "type": "git",
111 "url": "git+https://github.com/jonschlinkert/fragment-cache.git"
112 },
113 "bugs": {
114 "url": "https://github.com/jonschlinkert/fragment-cache/issues"
115 },
116 "license": "MIT",
117 "files": [
118 "index.js"
119 ],
120 "main": "index.js",
121 "engines": {
122 "node": ">=4.0"
123 },
124 "scripts": {
125 "test": "mocha"
126 },
127 "dependencies": {
128 "map-cache": "^0.2.2"
129 },
130 "devDependencies": {
131 "gulp": "^3.9.1",
132 "gulp-eslint": "^3.0.1",
133 "gulp-format-md": "^0.1.11",
134 "gulp-istanbul": "^1.1.1",
135 "gulp-mocha": "^3.0.1",
136 "mocha": "^3.1.2"
137 },
138 "keywords": [
139 "cache",
140 "fragment"
141 ],
142 "verb": {
143 "plugins": [
144 "gulp-format-md"
145 ],
146 "reflinks": [
147 "map-cache",
148 "verb"
149 ],
150 "related": {
151 "list": [
152 "base",
153 "map-cache"
154 ]
155 },
156 "layout": "default",
157 "toc": false,
158 "tasks": [
159 "readme"
160 ],
161 "lint": {
162 "reflinks": true
163 }
164 },
165 "gitHead": "b2e876bc60f09bff7017f7c08211d098de27622c",
166 "_id": "[email protected]",
167 "_shasum": "783dd290444ac80f87d9022d2eccc67f6e4f7fe4",
168 "_from": ".",
169 "_npmVersion": "3.10.3",
170 "_nodeVersion": "6.7.0",
171 "_npmUser": {
172 "name": "jonschlinkert",
173 "email": "[email protected]"
174 },
175 "maintainers": [
176 {
177 "name": "jonschlinkert",
178 "email": "[email protected]"
179 }
180 ],
181 "dist": {
182 "shasum": "783dd290444ac80f87d9022d2eccc67f6e4f7fe4",
183 "tarball": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.0.tgz"
184 },
185 "_npmOperationalInternal": {
186 "host": "packages-12-west.internal.npmjs.com",
187 "tmp": "tmp/fragment-cache-0.2.0.tgz_1476743803652_0.9261136949062347"
188 },
189 "directories": {}
190 },
191 "0.2.1": {
192 "name": "fragment-cache",
193 "description": "A cache for managing namespaced sub-caches",
194 "version": "0.2.1",
195 "homepage": "https://github.com/jonschlinkert/fragment-cache",
196 "author": {
197 "name": "Jon Schlinkert",
198 "url": "https://github.com/jonschlinkert"
199 },
200 "repository": {
201 "type": "git",
202 "url": "git+https://github.com/jonschlinkert/fragment-cache.git"
203 },
204 "bugs": {
205 "url": "https://github.com/jonschlinkert/fragment-cache/issues"
206 },
207 "license": "MIT",
208 "files": [
209 "index.js"
210 ],
211 "main": "index.js",
212 "engines": {
213 "node": ">=0.10.0"
214 },
215 "scripts": {
216 "test": "mocha"
217 },
218 "dependencies": {
219 "map-cache": "^0.2.2"
220 },
221 "devDependencies": {
222 "gulp": "^3.9.1",
223 "gulp-eslint": "^3.0.1",
224 "gulp-format-md": "^0.1.11",
225 "gulp-istanbul": "^1.1.1",
226 "gulp-mocha": "^3.0.1",
227 "mocha": "^3.2.0"
228 },
229 "keywords": [
230 "cache",
231 "fragment"
232 ],
233 "verb": {
234 "plugins": [
235 "gulp-format-md"
236 ],
237 "reflinks": [
238 "map-cache",
239 "verb"
240 ],
241 "related": {
242 "list": [
243 "base",
244 "map-cache"
245 ]
246 },
247 "layout": "default",
248 "toc": false,
249 "tasks": [
250 "readme"
251 ],
252 "lint": {
253 "reflinks": true
254 }
255 },
256 "gitHead": "33583b03f505c67479ddbc66f825b0e653704207",
257 "_id": "[email protected]",
258 "_shasum": "4290fad27f13e89be7f33799c6bc5a0abfff0d19",
259 "_from": ".",
260 "_npmVersion": "4.1.2",
261 "_nodeVersion": "7.6.0",
262 "_npmUser": {
263 "name": "jonschlinkert",
264 "email": "[email protected]"
265 },
266 "maintainers": [
267 {
268 "name": "jonschlinkert",
269 "email": "[email protected]"
270 }
271 ],
272 "dist": {
273 "shasum": "4290fad27f13e89be7f33799c6bc5a0abfff0d19",
274 "tarball": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz"
275 },
276 "_npmOperationalInternal": {
277 "host": "packages-18-east.internal.npmjs.com",
278 "tmp": "tmp/fragment-cache-0.2.1.tgz_1489523817961_0.01654543890617788"
279 },
280 "directories": {}
281 }
282 },
283 "readme": "# fragment-cache [![NPM version](https://img.shields.io/npm/v/fragment-cache.svg?style=flat)](https://www.npmjs.com/package/fragment-cache) [![NPM downloads](https://img.shields.io/npm/dm/fragment-cache.svg?style=flat)](https://npmjs.org/package/fragment-cache) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/fragment-cache.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/fragment-cache)\n\n> A cache for managing namespaced sub-caches\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save fragment-cache\n```\n\n## Usage\n\n```js\nvar Fragment = require('fragment-cache');\nvar fragment = new Fragment();\n```\n\n## API\n\n### [FragmentCache](index.js#L24)\n\nCreate a new `FragmentCache` with an optional object to use for `caches`.\n\n**Example**\n\n```js\nvar fragment = new FragmentCache();\n```\n\n**Params**\n\n* `cacheName` **{String}**\n* `returns` **{Object}**: Returns the [map-cache](https://github.com/jonschlinkert/map-cache) instance.\n\n### [.cache](index.js#L49)\n\nGet cache `name` from the `fragment.caches` object. Creates a new `MapCache` if it doesn't already exist.\n\n**Example**\n\n```js\nvar cache = fragment.cache('files');\nconsole.log(fragment.caches.hasOwnProperty('files'));\n//=> true\n```\n\n**Params**\n\n* `cacheName` **{String}**\n* `returns` **{Object}**: Returns the [map-cache](https://github.com/jonschlinkert/map-cache) instance.\n\n### [.set](index.js#L67)\n\nSet a value for property `key` on cache `name`\n\n**Example**\n\n```js\nfragment.set('files', 'somefile.js', new File({path: 'somefile.js'}));\n```\n\n**Params**\n\n* `name` **{String}**\n* `key` **{String}**: Property name to set\n* `val` **{any}**: The value of `key`\n* `returns` **{Object}**: The cache instance for chaining\n\n### [.has](index.js#L93)\n\nReturns true if a non-undefined value is set for `key` on fragment cache `name`.\n\n**Example**\n\n```js\nvar cache = fragment.cache('files');\ncache.set('somefile.js');\n\nconsole.log(cache.has('somefile.js'));\n//=> true\n\nconsole.log(cache.has('some-other-file.js'));\n//=> false\n```\n\n**Params**\n\n* `name` **{String}**: Cache name\n* `key` **{String}**: Optionally specify a property to check for on cache `name`\n* `returns` **{Boolean}**\n\n### [.get](index.js#L115)\n\nGet `name`, or if specified, the value of `key`. Invokes the [cache](#cache) method, so that cache `name` will be created it doesn't already exist. If `key` is not passed, the entire cache (`name`) is returned.\n\n**Example**\n\n```js\nvar Vinyl = require('vinyl');\nvar cache = fragment.cache('files');\ncache.set('somefile.js', new Vinyl({path: 'somefile.js'}));\nconsole.log(cache.get('somefile.js'));\n//=> <File \"somefile.js\">\n```\n\n**Params**\n\n* `name` **{String}**\n* `returns` **{Object}**: Returns cache `name`, or the value of `key` if specified\n\n## About\n\n### Related projects\n\n* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://github.com/node-base/base) | [homepage](https://github.com/node-base/base \"base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting with a handful of common methods, like `set`, `get`, `del` and `use`.\")\n* [map-cache](https://www.npmjs.com/package/map-cache): Basic cache object for storing key-value pairs. | [homepage](https://github.com/jonschlinkert/map-cache \"Basic cache object for storing key-value pairs.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/fragment-cache/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 17, 2016._",
284 "maintainers": [
285 {
286 "name": "jonschlinkert",
287 "email": "[email protected]"
288 }
289 ],
290 "time": {
291 "modified": "2017-03-14T20:36:58.556Z",
292 "created": "2016-05-03T12:02:57.546Z",
293 "0.1.0": "2016-05-03T12:02:57.546Z",
294 "0.2.0": "2016-10-17T22:36:45.438Z",
295 "0.2.1": "2017-03-14T20:36:58.556Z"
296 },
297 "homepage": "https://github.com/jonschlinkert/fragment-cache",
298 "keywords": [
299 "cache",
300 "fragment"
301 ],
302 "repository": {
303 "type": "git",
304 "url": "git+https://github.com/jonschlinkert/fragment-cache.git"
305 },
306 "author": {
307 "name": "Jon Schlinkert",
308 "url": "https://github.com/jonschlinkert"
309 },
310 "bugs": {
311 "url": "https://github.com/jonschlinkert/fragment-cache/issues"
312 },
313 "license": "MIT",
314 "readmeFilename": "README.md",
315 "_attachments": {}
316 }