Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/resolve-cwd.json

raw
1 {
2 "_id": "resolve-cwd",
3 "_rev": "3-23beff3e876db0720b1b462c0fbea057",
4 "name": "resolve-cwd",
5 "description": "Resolve the path of a module like `require.resolve()` but from the current working directory",
6 "dist-tags": {
7 "latest": "3.0.0"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "resolve-cwd",
12 "version": "1.0.0",
13 "description": "Resolve the path of a module like `require.resolve()` but from the current working directory",
14 "license": "MIT",
15 "repository": {
16 "type": "git",
17 "url": "https://github.com/sindresorhus/resolve-cwd"
18 },
19 "author": {
20 "name": "Sindre Sorhus",
21 "email": "[email protected]",
22 "url": "sindresorhus.com"
23 },
24 "engines": {
25 "node": ">=0.10.0"
26 },
27 "scripts": {
28 "test": "xo && ava"
29 },
30 "files": [
31 "index.js"
32 ],
33 "keywords": [
34 "require",
35 "resolve",
36 "path",
37 "module",
38 "from",
39 "like",
40 "path",
41 "cwd",
42 "current",
43 "working",
44 "directory"
45 ],
46 "dependencies": {
47 "resolve-from": "^2.0.0"
48 },
49 "devDependencies": {
50 "ava": "*",
51 "xo": "*"
52 },
53 "gitHead": "cdf0ae71148bb01e796165b1799996ae1ff2fa18",
54 "bugs": {
55 "url": "https://github.com/sindresorhus/resolve-cwd/issues"
56 },
57 "homepage": "https://github.com/sindresorhus/resolve-cwd",
58 "_id": "[email protected]",
59 "_shasum": "4eaeea41ed040d1702457df64a42b2b07d246f9f",
60 "_from": ".",
61 "_npmVersion": "2.14.7",
62 "_nodeVersion": "4.2.1",
63 "_npmUser": {
64 "name": "sindresorhus",
65 "email": "[email protected]"
66 },
67 "dist": {
68 "shasum": "4eaeea41ed040d1702457df64a42b2b07d246f9f",
69 "tarball": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-1.0.0.tgz"
70 },
71 "maintainers": [
72 {
73 "name": "sindresorhus",
74 "email": "[email protected]"
75 }
76 ],
77 "directories": {}
78 },
79 "2.0.0": {
80 "name": "resolve-cwd",
81 "version": "2.0.0",
82 "description": "Resolve the path of a module like `require.resolve()` but from the current working directory",
83 "license": "MIT",
84 "repository": {
85 "type": "git",
86 "url": "git+https://github.com/sindresorhus/resolve-cwd.git"
87 },
88 "author": {
89 "name": "Sindre Sorhus",
90 "email": "[email protected]",
91 "url": "sindresorhus.com"
92 },
93 "engines": {
94 "node": ">=4"
95 },
96 "scripts": {
97 "test": "xo && ava"
98 },
99 "files": [
100 "index.js"
101 ],
102 "keywords": [
103 "require",
104 "resolve",
105 "path",
106 "module",
107 "from",
108 "like",
109 "cwd",
110 "current",
111 "working",
112 "directory",
113 "import"
114 ],
115 "dependencies": {
116 "resolve-from": "^3.0.0"
117 },
118 "devDependencies": {
119 "ava": "*",
120 "xo": "*"
121 },
122 "gitHead": "8c41f4b51c0b12792127ca2974101f8cac800a3b",
123 "bugs": {
124 "url": "https://github.com/sindresorhus/resolve-cwd/issues"
125 },
126 "homepage": "https://github.com/sindresorhus/resolve-cwd#readme",
127 "_id": "[email protected]",
128 "_shasum": "00a9f7387556e27038eae232caa372a6a59b665a",
129 "_from": ".",
130 "_npmVersion": "2.15.11",
131 "_nodeVersion": "4.7.3",
132 "_npmUser": {
133 "name": "sindresorhus",
134 "email": "[email protected]"
135 },
136 "dist": {
137 "shasum": "00a9f7387556e27038eae232caa372a6a59b665a",
138 "tarball": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz"
139 },
140 "maintainers": [
141 {
142 "name": "sindresorhus",
143 "email": "[email protected]"
144 }
145 ],
146 "_npmOperationalInternal": {
147 "host": "packages-12-west.internal.npmjs.com",
148 "tmp": "tmp/resolve-cwd-2.0.0.tgz_1493370863917_0.16202757763676345"
149 },
150 "directories": {}
151 },
152 "3.0.0": {
153 "name": "resolve-cwd",
154 "version": "3.0.0",
155 "description": "Resolve the path of a module like `require.resolve()` but from the current working directory",
156 "license": "MIT",
157 "repository": {
158 "type": "git",
159 "url": "git+https://github.com/sindresorhus/resolve-cwd.git"
160 },
161 "author": {
162 "name": "Sindre Sorhus",
163 "email": "[email protected]",
164 "url": "sindresorhus.com"
165 },
166 "engines": {
167 "node": ">=8"
168 },
169 "scripts": {
170 "test": "xo && ava && tsd"
171 },
172 "keywords": [
173 "require",
174 "resolve",
175 "path",
176 "module",
177 "from",
178 "like",
179 "cwd",
180 "current",
181 "working",
182 "directory",
183 "import"
184 ],
185 "dependencies": {
186 "resolve-from": "^5.0.0"
187 },
188 "devDependencies": {
189 "ava": "^1.4.1",
190 "tsd": "^0.7.2",
191 "xo": "^0.24.0"
192 },
193 "gitHead": "55afe697667744f61fd78787526d6c4d989d75fc",
194 "bugs": {
195 "url": "https://github.com/sindresorhus/resolve-cwd/issues"
196 },
197 "homepage": "https://github.com/sindresorhus/resolve-cwd#readme",
198 "_id": "[email protected]",
199 "_nodeVersion": "10.15.3",
200 "_npmVersion": "6.9.0",
201 "_npmUser": {
202 "name": "sindresorhus",
203 "email": "[email protected]"
204 },
205 "dist": {
206 "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==",
207 "shasum": "0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d",
208 "tarball": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz",
209 "fileCount": 5,
210 "unpackedSize": 4984,
211 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyEVECRA9TVsSAnZWagAAuD8QAIYlycAr3jQxT+pyQrA3\nYA2rYG6peBfZUdagDFOLMY+8z8BWgTDoCip9PSMqUCcUF79oHgYrso3xbO5C\nDUYnStY3bNqsoP50YPbvbo5dkbwh6lMrEWuOM2/0LpqrmzYaScT3YBR6EcNz\nyO762gsxVpecLNlDVHP55LCrB9m5dFCfuN0SUAizNj6qH6Lgaw7jjtX1BUnH\nXhTi95SAgPm8uKwPx/N1X4ffouaa6vKYBDaRZ/qOQtLEqL2l+yPWl7Tin+4d\n2dlrKH/WIowKGoPA2jZT2XO9JWb8hNg5zgOK9ILkQRmNcjGPAqI91DiGeyNF\nOxJcXtq5/w+z2iAJCRZvahJuyj2Rx1nUGsV1Utl4Vpdv4KBpVgwzpl47epIY\nm587ogdMvPFfCxjBpmY1w6CPb7wqUUY7i/MwjpAQY4QHkRTxOpkxSo8gJZ9y\nj5CL3EM9kr9LrB7zpTNCSsx9q1UBsXo4HuJJZ2wiXC8b5cJYT0gr4+dhXKTQ\nSCWZLg0/oHJ4N6t80bAHs7qC5OYj3szKscKyFkFCQoDQmsbd8+DIEhraWMmt\nLBctFgf/zWPOEiWEbGjs6CNoR7e0wwwHoNcHCkWaOPOb5fMzEn4kJI4Q4oWv\nEmS5A7wYPBrYJ+9mPv534Oyxcoqs+pkUx2KATvoym6MONHuEl7v+KY/j3Vi8\nvDha\r\n=FN61\r\n-----END PGP SIGNATURE-----\r\n"
212 },
213 "maintainers": [
214 {
215 "name": "sindresorhus",
216 "email": "[email protected]"
217 }
218 ],
219 "directories": {},
220 "_npmOperationalInternal": {
221 "host": "s3://npm-registry-packages",
222 "tmp": "tmp/resolve-cwd_3.0.0_1556628803761_0.5546372287820458"
223 },
224 "_hasShrinkwrap": false
225 }
226 },
227 "readme": "# resolve-cwd [![Build Status](https://travis-ci.org/sindresorhus/resolve-cwd.svg?branch=master)](https://travis-ci.org/sindresorhus/resolve-cwd)\n\n> Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from the current working directory\n\n\n## Install\n\n```\n$ npm install resolve-cwd\n```\n\n\n## Usage\n\n```js\nconst resolveCwd = require('resolve-cwd');\n\nconsole.log(__dirname);\n//=> '/Users/sindresorhus/rainbow'\n\nconsole.log(process.cwd());\n//=> '/Users/sindresorhus/unicorn'\n\nconsole.log(resolveCwd('./foo'));\n//=> '/Users/sindresorhus/unicorn/foo.js'\n```\n\n\n## API\n\n### resolveCwd(moduleId)\n\nLike `require()`, throws when the module can't be found.\n\n### resolveCwd.silent(moduleId)\n\nReturns `undefined` instead of throwing when the module can't be found.\n\n#### moduleId\n\nType: `string`\n\nWhat you would use in `require()`.\n\n\n## Related\n\n- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module from a given path\n- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path\n- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory\n- [resolve-pkg](https://github.com/sindresorhus/resolve-pkg) - Resolve the path of a package regardless of it having an entry point\n- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily\n- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
228 "maintainers": [
229 {
230 "name": "sindresorhus",
231 "email": "[email protected]"
232 }
233 ],
234 "time": {
235 "modified": "2019-04-30T12:53:26.424Z",
236 "created": "2015-12-06T16:26:27.080Z",
237 "1.0.0": "2015-12-06T16:26:27.080Z",
238 "2.0.0": "2017-04-28T09:14:24.319Z",
239 "3.0.0": "2019-04-30T12:53:23.953Z"
240 },
241 "homepage": "https://github.com/sindresorhus/resolve-cwd#readme",
242 "keywords": [
243 "require",
244 "resolve",
245 "path",
246 "module",
247 "from",
248 "like",
249 "cwd",
250 "current",
251 "working",
252 "directory",
253 "import"
254 ],
255 "repository": {
256 "type": "git",
257 "url": "git+https://github.com/sindresorhus/resolve-cwd.git"
258 },
259 "author": {
260 "name": "Sindre Sorhus",
261 "email": "[email protected]",
262 "url": "sindresorhus.com"
263 },
264 "bugs": {
265 "url": "https://github.com/sindresorhus/resolve-cwd/issues"
266 },
267 "license": "MIT",
268 "readmeFilename": "readme.md"
269 }