Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/buffer-from.json

raw
1 {
2 "_id": "buffer-from",
3 "_rev": "6-ca6df87262ce232a4a9e0d76d08a17d6",
4 "name": "buffer-from",
5 "description": "A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.",
6 "dist-tags": {
7 "latest": "1.1.1"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "buffer-from",
12 "version": "0.1.0",
13 "license": "MIT",
14 "repository": {
15 "type": "git",
16 "url": "git+https://github.com/linusu/buffer-from.git"
17 },
18 "scripts": {
19 "test": "standard && node test"
20 },
21 "devDependencies": {
22 "standard": "^7.1.2"
23 },
24 "keywords": [
25 "buffer",
26 "buffer from"
27 ],
28 "gitHead": "25cc13c38ea511a655495f990c4846a419f219c3",
29 "description": "A ponyfill for `Buffer.from`, uses native implementation if available.",
30 "bugs": {
31 "url": "https://github.com/linusu/buffer-from/issues"
32 },
33 "homepage": "https://github.com/linusu/buffer-from#readme",
34 "_id": "[email protected]",
35 "_shasum": "a49dce54d048e955595d22e983ba5fe8aed5ffdd",
36 "_from": ".",
37 "_npmVersion": "3.10.3",
38 "_nodeVersion": "6.3.1",
39 "_npmUser": {
40 "name": "linusu",
41 "email": "[email protected]"
42 },
43 "dist": {
44 "shasum": "a49dce54d048e955595d22e983ba5fe8aed5ffdd",
45 "tarball": "https://registry.npmjs.org/buffer-from/-/buffer-from-0.1.0.tgz"
46 },
47 "maintainers": [
48 {
49 "name": "linusu",
50 "email": "[email protected]"
51 }
52 ],
53 "_npmOperationalInternal": {
54 "host": "packages-16-east.internal.npmjs.com",
55 "tmp": "tmp/buffer-from-0.1.0.tgz_1471550043197_0.43763306783512235"
56 },
57 "directories": {}
58 },
59 "0.1.1": {
60 "name": "buffer-from",
61 "version": "0.1.1",
62 "license": "MIT",
63 "repository": {
64 "type": "git",
65 "url": "git+https://github.com/linusu/buffer-from.git"
66 },
67 "scripts": {
68 "test": "standard && node test"
69 },
70 "devDependencies": {
71 "standard": "^7.1.2"
72 },
73 "keywords": [
74 "buffer",
75 "buffer from"
76 ],
77 "dependencies": {
78 "is-array-buffer-x": "^1.0.13"
79 },
80 "gitHead": "07ff5440f58e6b279dac5e9007eed4f51cf84e92",
81 "description": "A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.",
82 "bugs": {
83 "url": "https://github.com/linusu/buffer-from/issues"
84 },
85 "homepage": "https://github.com/linusu/buffer-from#readme",
86 "_id": "[email protected]",
87 "_shasum": "57b18b1da0a19ec06f33837a5275a242351bd75e",
88 "_from": ".",
89 "_npmVersion": "2.15.1",
90 "_nodeVersion": "0.10.45",
91 "_npmUser": {
92 "name": "linusu",
93 "email": "[email protected]"
94 },
95 "dist": {
96 "shasum": "57b18b1da0a19ec06f33837a5275a242351bd75e",
97 "tarball": "https://registry.npmjs.org/buffer-from/-/buffer-from-0.1.1.tgz"
98 },
99 "maintainers": [
100 {
101 "name": "linusu",
102 "email": "[email protected]"
103 }
104 ],
105 "_npmOperationalInternal": {
106 "host": "packages-12-west.internal.npmjs.com",
107 "tmp": "tmp/buffer-from-0.1.1.tgz_1476621469818_0.06613527098670602"
108 },
109 "directories": {}
110 },
111 "0.1.2": {
112 "name": "buffer-from",
113 "version": "0.1.2",
114 "license": "MIT",
115 "repository": {
116 "type": "git",
117 "url": "git+https://github.com/LinusU/buffer-from.git"
118 },
119 "scripts": {
120 "test": "standard && node test"
121 },
122 "devDependencies": {
123 "standard": "^7.1.2"
124 },
125 "keywords": [
126 "buffer",
127 "buffer from"
128 ],
129 "gitHead": "4d65c51194eb8786218096d33a4613a091dbde5c",
130 "description": "A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.",
131 "bugs": {
132 "url": "https://github.com/LinusU/buffer-from/issues"
133 },
134 "homepage": "https://github.com/LinusU/buffer-from#readme",
135 "_id": "[email protected]",
136 "_npmVersion": "5.6.0",
137 "_nodeVersion": "9.7.1",
138 "_npmUser": {
139 "name": "linusu",
140 "email": "[email protected]"
141 },
142 "dist": {
143 "integrity": "sha512-RiWIenusJsmI2KcvqQABB83tLxCByE3upSP8QU3rJDMVFGPWLvPQJt/O1Su9moRWeH7d+Q2HYb68f6+v+tw2vg==",
144 "shasum": "15f4b9bcef012044df31142c14333caf6e0260d0",
145 "tarball": "https://registry.npmjs.org/buffer-from/-/buffer-from-0.1.2.tgz",
146 "fileCount": 4,
147 "unpackedSize": 4250
148 },
149 "maintainers": [
150 {
151 "name": "linusu",
152 "email": "[email protected]"
153 }
154 ],
155 "directories": {},
156 "_npmOperationalInternal": {
157 "host": "s3://npm-registry-packages",
158 "tmp": "tmp/buffer-from_0.1.2_1520881959527_0.8321384344651832"
159 }
160 },
161 "1.0.0": {
162 "name": "buffer-from",
163 "version": "1.0.0",
164 "license": "MIT",
165 "repository": {
166 "type": "git",
167 "url": "git+https://github.com/LinusU/buffer-from.git"
168 },
169 "scripts": {
170 "test": "standard && node test"
171 },
172 "devDependencies": {
173 "standard": "^7.1.2"
174 },
175 "keywords": [
176 "buffer",
177 "buffer from"
178 ],
179 "gitHead": "645a803486f7aa17affe1b783f84f496789e28f9",
180 "description": "A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.",
181 "bugs": {
182 "url": "https://github.com/LinusU/buffer-from/issues"
183 },
184 "homepage": "https://github.com/LinusU/buffer-from#readme",
185 "_id": "[email protected]",
186 "_npmVersion": "5.6.0",
187 "_nodeVersion": "9.7.1",
188 "_npmUser": {
189 "name": "linusu",
190 "email": "[email protected]"
191 },
192 "dist": {
193 "integrity": "sha512-83apNb8KK0Se60UE1+4Ukbe3HbfELJ6UlI4ldtOGs7So4KD26orJM8hIY9lxdzP+UpItH1Yh/Y8GUvNFWFFRxA==",
194 "shasum": "4cb8832d23612589b0406e9e2956c17f06fdf531",
195 "tarball": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.0.0.tgz",
196 "fileCount": 4,
197 "unpackedSize": 4250
198 },
199 "maintainers": [
200 {
201 "name": "linusu",
202 "email": "[email protected]"
203 }
204 ],
205 "directories": {},
206 "_npmOperationalInternal": {
207 "host": "s3://npm-registry-packages",
208 "tmp": "tmp/buffer-from_1.0.0_1520882003570_0.3930838505714873"
209 }
210 },
211 "1.1.0": {
212 "name": "buffer-from",
213 "version": "1.1.0",
214 "license": "MIT",
215 "repository": {
216 "type": "git",
217 "url": "git+https://github.com/LinusU/buffer-from.git"
218 },
219 "files": [
220 "index.js"
221 ],
222 "scripts": {
223 "test": "standard && node test"
224 },
225 "devDependencies": {
226 "standard": "^7.1.2"
227 },
228 "keywords": [
229 "buffer",
230 "buffer from"
231 ],
232 "gitHead": "2bea5de4fdca7b13b5a9edafdcb1b74b9ffa6f98",
233 "description": "A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.",
234 "bugs": {
235 "url": "https://github.com/LinusU/buffer-from/issues"
236 },
237 "homepage": "https://github.com/LinusU/buffer-from#readme",
238 "_id": "[email protected]",
239 "_npmVersion": "5.6.0",
240 "_nodeVersion": "10.2.1",
241 "_npmUser": {
242 "name": "linusu",
243 "email": "[email protected]"
244 },
245 "dist": {
246 "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==",
247 "shasum": "87fcaa3a298358e0ade6e442cfce840740d1ad04",
248 "tarball": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz",
249 "fileCount": 3,
250 "unpackedSize": 3888,
251 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDeRgCRA9TVsSAnZWagAAd9EP/2tgjGpg0D2foCpZEQKf\nCT1dXMK17+ogbS9ra2xGjuPclU3fkXMihwUINK7/xMoxxFo8fGOwMFPblOHM\nBfO8mEyUyWD8X2SNGwIC3thzobtiQFSiQIzGWag5G6TZxKcnhWXWDcRnGBeu\nfYF5N9K6TDItxL920LlzqJ3Y7glr4Wv7SDJyrzVBfEIGmfgM8aVad5MZNeEK\nv+Nzt/kd2jt5PvUoOoY826q03Vg14awD8vx9tJc6AoaFCOnOBnD/1uAqeg4l\nW404tmnqtfCBdSZj+/iv0xdjJSZqqInsiXK01+HNxorY7mSTc0Bdh0b8tnkA\njONz5g0k5a4S8Y1LYVfNg7MvmryxQFtdBCJj15eYVU5pYkR8AohCOkNF6vCH\nWPjS3FOfY3y6/ffbY32YhLnDAhIMk3leI9UIc2KvbQ0/bJgXHYRhrdU2Iumx\nmrx43cXbwTqLjngV23UISic6/5jJxyUbUYmjTL72j71bU61sZ/AWn8MwAXEY\nN56xPgL8MztdIcwHV+QqjekkP8YLiLutqAui42EtIxd8vZamypd2lOKiKEh6\nyJ641PVOvCKiIEq4F+9jqy0HtNnUIwZ5wOR+CMHwkaM4BkszVbviUA/9B0+K\n8dF13Js/z5YenP+8Atp4CUyAebmCrmJ5prFvFD+blLVoQSMjqz8KvHvHbNrh\nJ6rs\r\n=2hhN\r\n-----END PGP SIGNATURE-----\r\n"
252 },
253 "maintainers": [
254 {
255 "name": "linusu",
256 "email": "[email protected]"
257 }
258 ],
259 "directories": {},
260 "_npmOperationalInternal": {
261 "host": "s3://npm-registry-packages",
262 "tmp": "tmp/buffer-from_1.1.0_1527637088129_0.03838545968741203"
263 }
264 },
265 "1.1.1": {
266 "name": "buffer-from",
267 "version": "1.1.1",
268 "license": "MIT",
269 "repository": {
270 "type": "git",
271 "url": "git+https://github.com/LinusU/buffer-from.git"
272 },
273 "files": [
274 "index.js"
275 ],
276 "scripts": {
277 "test": "standard && node test"
278 },
279 "devDependencies": {
280 "standard": "^7.1.2"
281 },
282 "keywords": [
283 "buffer",
284 "buffer from"
285 ],
286 "gitHead": "53f464194ae30e806f6faef635202b4dfd404ed5",
287 "description": "A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.",
288 "bugs": {
289 "url": "https://github.com/LinusU/buffer-from/issues"
290 },
291 "homepage": "https://github.com/LinusU/buffer-from#readme",
292 "_id": "[email protected]",
293 "_npmVersion": "6.1.0",
294 "_nodeVersion": "10.5.0",
295 "_npmUser": {
296 "name": "linusu",
297 "email": "[email protected]"
298 },
299 "dist": {
300 "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
301 "shasum": "32713bc028f75c02fdb710d7c7bcec1f2c6070ef",
302 "tarball": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
303 "fileCount": 4,
304 "unpackedSize": 4966,
305 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbYHUTCRA9TVsSAnZWagAAgoQP/1LXApc57d1uAc/0mnLq\nCI87dq7EtKS4lG7EjFY3yzxIZxlq1++vH0/sWe0V8je9sHhrm/AkSxlcplEV\nWELPjRwIY4h3LP6U5ppG7XAVGmbipkIAGhiRaJtqGfI/TgPRiB3QcrqanlRG\nBf4oDubBJ2vK8dh5Gd0AhAkkTOsIcf4b5uC64A5GUtMoPOrko+zyRYM8IrRo\n7kDspGfsk3YYxyB/L0APD4AIC8vYz2Gin2ca+zJBZH6cvfThhFWbSnCFfVuW\nxXcheune4boTojusOn5dm4LxzFyMgbeibDZTaq+Yod3RuuUVaSCXWNITcT6g\nIlP7wdbBFGx7Ik5hKEtAGtsCdWshzg9YxHR7g7CPe+0xIeb0zNeKBlxFF2jT\niPeiI+JGlMZuH2Qu+284T9WWom/j0NcbZuWmrV5E1GUimVJqtgqD3S3ivc4y\n6fS6OTIemRUmWwmS7farPxzTs34QkUp0vH/dhuvNeZKockTjLvlveHlOtC4m\nhGp5UdiwrsV7Xqqy/RHlACxPjexkDfhwi0FSeY799VkzbgrPm7Npwn8HwMDI\nv6qpaxPbruRJx65zp1J4DqWlhYENreSFOaXGY/t34GIQ1yNHXGg4Z2ltshPi\nb3lJuLEolQYK5GAcryVnAGusAisYQDfygT1BPxYsVT2ZWYmicpHs7UD+70ya\nfbJa\r\n=YgJu\r\n-----END PGP SIGNATURE-----\r\n"
306 },
307 "maintainers": [
308 {
309 "name": "linusu",
310 "email": "[email protected]"
311 }
312 ],
313 "directories": {},
314 "_npmOperationalInternal": {
315 "host": "s3://npm-registry-packages",
316 "tmp": "tmp/buffer-from_1.1.1_1533048083841_0.2458068233892754"
317 }
318 }
319 },
320 "readme": "# Buffer From\n\nA [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.\n\n## Installation\n\n```sh\nnpm install --save buffer-from\n```\n\n## Usage\n\n```js\nconst bufferFrom = require('buffer-from')\n\nconsole.log(bufferFrom([1, 2, 3, 4]))\n//=> <Buffer 01 02 03 04>\n\nconst arr = new Uint8Array([1, 2, 3, 4])\nconsole.log(bufferFrom(arr.buffer, 1, 2))\n//=> <Buffer 02 03>\n\nconsole.log(bufferFrom('test', 'utf8'))\n//=> <Buffer 74 65 73 74>\n\nconst buf = bufferFrom('test')\nconsole.log(bufferFrom(buf))\n//=> <Buffer 74 65 73 74>\n```\n\n## API\n\n### bufferFrom(array)\n\n- `array` &lt;Array&gt;\n\nAllocates a new `Buffer` using an `array` of octets.\n\n### bufferFrom(arrayBuffer[, byteOffset[, length]])\n\n- `arrayBuffer` &lt;ArrayBuffer&gt; The `.buffer` property of a TypedArray or ArrayBuffer\n- `byteOffset` &lt;Integer&gt; Where to start copying from `arrayBuffer`. **Default:** `0`\n- `length` &lt;Integer&gt; How many bytes to copy from `arrayBuffer`. **Default:** `arrayBuffer.length - byteOffset`\n\nWhen passed a reference to the `.buffer` property of a TypedArray instance, the\nnewly created `Buffer` will share the same allocated memory as the TypedArray.\n\nThe optional `byteOffset` and `length` arguments specify a memory range within\nthe `arrayBuffer` that will be shared by the `Buffer`.\n\n### bufferFrom(buffer)\n\n- `buffer` &lt;Buffer&gt; An existing `Buffer` to copy data from\n\nCopies the passed `buffer` data onto a new `Buffer` instance.\n\n### bufferFrom(string[, encoding])\n\n- `string` &lt;String&gt; A string to encode.\n- `encoding` &lt;String&gt; The encoding of `string`. **Default:** `'utf8'`\n\nCreates a new `Buffer` containing the given JavaScript string `string`. If\nprovided, the `encoding` parameter identifies the character encoding of\n`string`.\n\n## See also\n\n- [buffer-alloc](https://github.com/LinusU/buffer-alloc) A ponyfill for `Buffer.alloc`\n- [buffer-alloc-unsafe](https://github.com/LinusU/buffer-alloc-unsafe) A ponyfill for `Buffer.allocUnsafe`\n",
321 "maintainers": [
322 {
323 "name": "linusu",
324 "email": "[email protected]"
325 }
326 ],
327 "time": {
328 "modified": "2018-07-31T14:41:30.644Z",
329 "created": "2016-08-18T19:54:04.205Z",
330 "0.1.0": "2016-08-18T19:54:04.205Z",
331 "0.1.1": "2016-10-16T12:37:51.558Z",
332 "0.1.2": "2018-03-12T19:12:39.586Z",
333 "1.0.0": "2018-03-12T19:13:23.644Z",
334 "1.1.0": "2018-05-29T23:38:08.325Z",
335 "1.1.1": "2018-07-31T14:41:23.906Z"
336 },
337 "homepage": "https://github.com/LinusU/buffer-from#readme",
338 "keywords": [
339 "buffer",
340 "buffer from"
341 ],
342 "repository": {
343 "type": "git",
344 "url": "git+https://github.com/LinusU/buffer-from.git"
345 },
346 "bugs": {
347 "url": "https://github.com/LinusU/buffer-from/issues"
348 },
349 "license": "MIT",
350 "readmeFilename": "readme.md",
351 "_attachments": {}
352 }