Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/find-root.json

raw
1 {
2 "_id": "find-root",
3 "_rev": "20-9d0c25063e90ca7f9c868c14d7d47e08",
4 "name": "find-root",
5 "description": "find the closest package.json",
6 "dist-tags": {
7 "latest": "1.1.0"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "find-root",
12 "author": {
13 "name": "AgileMD",
14 "email": "[email protected]"
15 },
16 "contributors": [
17 {
18 "name": "jden",
19 "email": "[email protected]"
20 }
21 ],
22 "version": "0.1.0",
23 "description": "find the closest package.json",
24 "keywords": [
25 "package",
26 "module",
27 "base",
28 "root"
29 ],
30 "main": "index.js",
31 "scripts": {
32 "test": "node node_modules/mocha/bin/mocha"
33 },
34 "repository": {
35 "type": "git",
36 "url": "[email protected]:agilemd/find-root.git"
37 },
38 "license": "MIT",
39 "devDependencies": {
40 "chai": "~1.6.0",
41 "mocha": "~1.9.0",
42 "moquire": "~1.5.4"
43 },
44 "bugs": {
45 "url": "https://github.com/agilemd/find-root/issues"
46 },
47 "homepage": "https://github.com/agilemd/find-root",
48 "_id": "[email protected]",
49 "dist": {
50 "shasum": "525352ded5f22f8672375479547a6809352d880e",
51 "tarball": "https://registry.npmjs.org/find-root/-/find-root-0.1.0.tgz"
52 },
53 "_from": ".",
54 "_npmVersion": "1.3.14",
55 "_npmUser": {
56 "name": "jden",
57 "email": "[email protected]"
58 },
59 "maintainers": [
60 {
61 "name": "jden",
62 "email": "[email protected]"
63 }
64 ],
65 "directories": {}
66 },
67 "0.1.1": {
68 "name": "find-root",
69 "author": {
70 "name": "AgileMD",
71 "email": "[email protected]"
72 },
73 "contributors": [
74 {
75 "name": "jden",
76 "email": "[email protected]"
77 }
78 ],
79 "version": "0.1.1",
80 "description": "find the closest package.json",
81 "keywords": [
82 "package",
83 "module",
84 "base",
85 "root"
86 ],
87 "main": "index.js",
88 "scripts": {
89 "test": "node node_modules/mocha/bin/mocha"
90 },
91 "repository": {
92 "type": "git",
93 "url": "[email protected]:agilemd/find-root.git"
94 },
95 "license": "MIT",
96 "devDependencies": {
97 "chai": "~1.6.0",
98 "mocha": "~1.9.0",
99 "moquire": "~1.5.4"
100 },
101 "bugs": {
102 "url": "https://github.com/agilemd/find-root/issues"
103 },
104 "homepage": "https://github.com/agilemd/find-root",
105 "_id": "[email protected]",
106 "dist": {
107 "shasum": "f636d46f3e75f085f3289eb7c7791e5039a377ca",
108 "tarball": "https://registry.npmjs.org/find-root/-/find-root-0.1.1.tgz"
109 },
110 "_from": ".",
111 "_npmVersion": "1.3.14",
112 "_npmUser": {
113 "name": "jden",
114 "email": "[email protected]"
115 },
116 "maintainers": [
117 {
118 "name": "jden",
119 "email": "[email protected]"
120 }
121 ],
122 "directories": {}
123 },
124 "0.1.2": {
125 "name": "find-root",
126 "author": {
127 "name": "AgileMD",
128 "email": "[email protected]"
129 },
130 "contributors": [
131 {
132 "name": "jden",
133 "email": "[email protected]"
134 }
135 ],
136 "version": "0.1.2",
137 "description": "find the closest package.json",
138 "keywords": [
139 "package",
140 "module",
141 "base",
142 "root"
143 ],
144 "main": "index.js",
145 "scripts": {
146 "test": "node node_modules/mocha/bin/mocha"
147 },
148 "repository": {
149 "type": "git",
150 "url": "git+ssh://[email protected]/agilemd/find-root.git"
151 },
152 "license": "MIT",
153 "devDependencies": {
154 "chai": "~1.6.0",
155 "mocha": "~1.9.0",
156 "moquire": "~1.5.4"
157 },
158 "gitHead": "2e125a772883d8da1201b35b3d2f44b338f47841",
159 "bugs": {
160 "url": "https://github.com/agilemd/find-root/issues"
161 },
162 "homepage": "https://github.com/agilemd/find-root#readme",
163 "_id": "[email protected]",
164 "_shasum": "98d2267cff1916ccaf2743b3a0eea81d79d7dcd1",
165 "_from": ".",
166 "_npmVersion": "3.5.3",
167 "_nodeVersion": "5.6.0",
168 "_npmUser": {
169 "name": "jden",
170 "email": "[email protected]"
171 },
172 "dist": {
173 "shasum": "98d2267cff1916ccaf2743b3a0eea81d79d7dcd1",
174 "tarball": "https://registry.npmjs.org/find-root/-/find-root-0.1.2.tgz"
175 },
176 "maintainers": [
177 {
178 "name": "jden",
179 "email": "[email protected]"
180 }
181 ],
182 "_npmOperationalInternal": {
183 "host": "packages-5-east.internal.npmjs.com",
184 "tmp": "tmp/find-root-0.1.2.tgz_1456090841354_0.014418847160413861"
185 },
186 "directories": {}
187 },
188 "1.0.0": {
189 "name": "find-root",
190 "author": {
191 "name": "AgileMD",
192 "email": "[email protected]"
193 },
194 "contributors": [
195 {
196 "name": "jden",
197 "email": "[email protected]"
198 }
199 ],
200 "version": "1.0.0",
201 "description": "find the closest package.json",
202 "keywords": [
203 "package",
204 "module",
205 "base",
206 "root"
207 ],
208 "main": "index.js",
209 "scripts": {
210 "test": "node node_modules/mocha/bin/mocha"
211 },
212 "repository": {
213 "type": "git",
214 "url": "git+ssh://[email protected]/agilemd/find-root.git"
215 },
216 "license": "MIT",
217 "devDependencies": {
218 "chai": "~1.6.0",
219 "mocha": "~1.9.0",
220 "moquire": "~1.5.4"
221 },
222 "gitHead": "1c0c9813e26520a8857fe7522b9e04fad05362c2",
223 "bugs": {
224 "url": "https://github.com/agilemd/find-root/issues"
225 },
226 "homepage": "https://github.com/agilemd/find-root#readme",
227 "_id": "[email protected]",
228 "_shasum": "962ff211aab25c6520feeeb8d6287f8f6e95807a",
229 "_from": ".",
230 "_npmVersion": "3.5.3",
231 "_nodeVersion": "5.6.0",
232 "_npmUser": {
233 "name": "jden",
234 "email": "[email protected]"
235 },
236 "dist": {
237 "shasum": "962ff211aab25c6520feeeb8d6287f8f6e95807a",
238 "tarball": "https://registry.npmjs.org/find-root/-/find-root-1.0.0.tgz"
239 },
240 "maintainers": [
241 {
242 "name": "jden",
243 "email": "[email protected]"
244 }
245 ],
246 "_npmOperationalInternal": {
247 "host": "packages-9-west.internal.npmjs.com",
248 "tmp": "tmp/find-root-1.0.0.tgz_1456090856016_0.6876039081253111"
249 },
250 "directories": {}
251 },
252 "1.1.0": {
253 "name": "find-root",
254 "author": {
255 "name": "jsdnxx"
256 },
257 "version": "1.1.0",
258 "description": "find the closest package.json",
259 "keywords": [
260 "fs",
261 "get",
262 "find",
263 "closest",
264 "package",
265 "module",
266 "base",
267 "root"
268 ],
269 "main": "index.js",
270 "scripts": {
271 "pretest": "standard",
272 "test": "mocha"
273 },
274 "repository": {
275 "type": "git",
276 "url": "git+ssh://[email protected]/js-n/find-root.git"
277 },
278 "license": "MIT",
279 "devDependencies": {
280 "chai": "^4.0.2",
281 "mocha": "^3.4.2",
282 "moquire": "^1.5.5",
283 "standard": "^10.0.2"
284 },
285 "gitHead": "853727496c7846456cee13f3bf9079ba978bc858",
286 "bugs": {
287 "url": "https://github.com/js-n/find-root/issues"
288 },
289 "homepage": "https://github.com/js-n/find-root#readme",
290 "_id": "[email protected]",
291 "_npmVersion": "5.0.4",
292 "_nodeVersion": "8.1.2",
293 "_npmUser": {
294 "name": "jsdnxx",
295 "email": "[email protected]"
296 },
297 "dist": {
298 "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==",
299 "shasum": "abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4",
300 "tarball": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz"
301 },
302 "maintainers": [
303 {
304 "name": "jsdnxx",
305 "email": "[email protected]"
306 }
307 ],
308 "_npmOperationalInternal": {
309 "host": "s3://npm-registry-packages",
310 "tmp": "tmp/find-root-1.1.0.tgz_1498771558761_0.5412233145907521"
311 },
312 "directories": {}
313 }
314 },
315 "readme": "# find-root\nrecursively find the closest package.json\n\n[![Build Status](https://travis-ci.org/js-n/find-root.svg?branch=master)](https://travis-ci.org/js-n/find-root)\n\n## usage\nSay you want to check if the directory name of a project matches its\nmodule name in package.json:\n\n```js\nconst path = require('path')\nconst findRoot = require('find-root')\n\n// from a starting directory, recursively search for the nearest\n// directory containing package.json\nconst root = findRoot('/Users/jsdnxx/Code/find-root/tests')\n// => '/Users/jsdnxx/Code/find-root'\n\nconst dirname = path.basename(root)\nconsole.log('is it the same?')\nconsole.log(dirname === require(path.join(root, 'package.json')).name)\n```\n\nYou can also pass in a custom check function (by default, it checks for the\nexistence of `package.json` in a directory). In this example, we traverse up\nto find the root of a git repo:\n```js\nconst fs = require('fs')\n\nconst gitRoot = findRoot('/Users/jsdnxx/Code/find-root/tests', function (dir) {\n return fs.existsSync(path.resolve(dir, '.git'))\n})\n```\n\n\n## api\n\n### `findRoot: (startingPath : string, check?: (dir: string) => boolean) => string`\n\nReturns the path for the nearest directory to `startingPath` containing\na `package.json` file, eg `/foo/module`.\n\nIf `check` is provided, returns the path for the closest parent directory\nwhere `check` returns true.\n\nThrows an error if no `package.json` is found at any level in the\n`startingPath`.\n\n\n## installation\n```sh\n> npm install find-root\n```\n\n## running the tests\n\nFrom package root:\n```sh\n> npm install\n> npm test\n```\n\n## contributors\n\n- jsdnxx\n\n\n## license\nMIT. (c) 2017 jsdnxx\n",
316 "maintainers": [],
317 "time": {
318 "modified": "2018-04-04T20:39:23.199Z",
319 "created": "2013-12-05T21:36:50.922Z",
320 "0.1.0": "2013-12-05T21:36:51.954Z",
321 "0.1.1": "2013-12-05T21:57:44.408Z",
322 "0.1.2": "2016-02-21T21:40:45.618Z",
323 "1.0.0": "2016-02-21T21:40:59.218Z",
324 "1.1.0": "2017-06-29T21:25:58.908Z"
325 },
326 "author": {
327 "name": "jsdnxx"
328 },
329 "repository": {
330 "type": "git",
331 "url": "git+ssh://[email protected]/js-n/find-root.git"
332 },
333 "readmeFilename": "README.md",
334 "users": {
335 "itonyyo": true,
336 "backnight": true
337 },
338 "homepage": "https://github.com/js-n/find-root#readme",
339 "keywords": [
340 "fs",
341 "get",
342 "find",
343 "closest",
344 "package",
345 "module",
346 "base",
347 "root"
348 ],
349 "bugs": {
350 "url": "https://github.com/js-n/find-root/issues"
351 },
352 "license": "MIT",
353 "_attachments": {}
354 }