Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/detect-indent.json

raw
1 {
2 "_id": "detect-indent",
3 "_rev": "46-9f33b30bfa578407f60e2e4e324d1fed",
4 "name": "detect-indent",
5 "description": "Detect the indentation of code",
6 "dist-tags": {
7 "latest": "6.0.0"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "detect-indent",
12 "version": "0.1.0",
13 "description": "Detect the indentation of code",
14 "keywords": [
15 "indent",
16 "indentation",
17 "detect",
18 "infer",
19 "identify",
20 "code",
21 "string",
22 "text",
23 "source",
24 "space",
25 "tab"
26 ],
27 "homepage": "https://github.com/sindresorhus/detect-indent",
28 "bugs": {
29 "url": "https://github.com/sindresorhus/detect-indent/issues"
30 },
31 "license": "MIT",
32 "author": {
33 "name": "Sindre Sorhus",
34 "email": "[email protected]",
35 "url": "http://sindresorhus.com"
36 },
37 "files": [
38 "detect-indent.js"
39 ],
40 "main": "detect-indent",
41 "repository": {
42 "type": "git",
43 "url": "git://github.com/sindresorhus/detect-indent.git"
44 },
45 "scripts": {
46 "test": "mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"
47 },
48 "devDependencies": {
49 "mocha": "~1.12.0",
50 "chai": "~1.7.2",
51 "phantomjs": "~1.9.1",
52 "mocha-phantomjs": "~3.1.0"
53 },
54 "engines": {
55 "node": ">=0.8.0"
56 },
57 "_id": "[email protected]",
58 "dist": {
59 "shasum": "b071bdece3312b9669147950e7aefb2e5d392327",
60 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.0.tgz"
61 },
62 "_from": ".",
63 "_npmVersion": "1.2.32",
64 "_npmUser": {
65 "name": "sindresorhus",
66 "email": "[email protected]"
67 },
68 "maintainers": [
69 {
70 "name": "sindresorhus",
71 "email": "[email protected]"
72 }
73 ],
74 "directories": {}
75 },
76 "0.1.1": {
77 "name": "detect-indent",
78 "version": "0.1.1",
79 "description": "Detect the indentation of code",
80 "keywords": [
81 "indent",
82 "indentation",
83 "detect",
84 "infer",
85 "identify",
86 "code",
87 "string",
88 "text",
89 "source",
90 "space",
91 "tab"
92 ],
93 "homepage": "https://github.com/sindresorhus/detect-indent",
94 "bugs": {
95 "url": "https://github.com/sindresorhus/detect-indent/issues"
96 },
97 "license": "MIT",
98 "author": {
99 "name": "Sindre Sorhus",
100 "email": "[email protected]",
101 "url": "http://sindresorhus.com"
102 },
103 "files": [
104 "detect-indent.js"
105 ],
106 "main": "detect-indent",
107 "repository": {
108 "type": "git",
109 "url": "git://github.com/sindresorhus/detect-indent.git"
110 },
111 "scripts": {
112 "test": "mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"
113 },
114 "devDependencies": {
115 "mocha": "~1.12.0",
116 "chai": "~1.7.2",
117 "phantomjs": "~1.9.1",
118 "mocha-phantomjs": "~3.1.0"
119 },
120 "engines": {
121 "node": ">=0.8.0"
122 },
123 "_id": "[email protected]",
124 "dist": {
125 "shasum": "55316047de5171c613a3a205af6a6fcfcda2710d",
126 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.1.tgz"
127 },
128 "_from": ".",
129 "_npmVersion": "1.2.32",
130 "_npmUser": {
131 "name": "sindresorhus",
132 "email": "[email protected]"
133 },
134 "maintainers": [
135 {
136 "name": "sindresorhus",
137 "email": "[email protected]"
138 }
139 ],
140 "directories": {}
141 },
142 "0.1.2": {
143 "name": "detect-indent",
144 "version": "0.1.2",
145 "description": "Detect the indentation of code",
146 "keywords": [
147 "indent",
148 "indentation",
149 "detect",
150 "infer",
151 "identify",
152 "code",
153 "string",
154 "text",
155 "source",
156 "space",
157 "tab"
158 ],
159 "homepage": "https://github.com/sindresorhus/detect-indent",
160 "bugs": {
161 "url": "https://github.com/sindresorhus/detect-indent/issues"
162 },
163 "license": "MIT",
164 "author": {
165 "name": "Sindre Sorhus",
166 "email": "[email protected]",
167 "url": "http://sindresorhus.com"
168 },
169 "files": [
170 "detect-indent.js"
171 ],
172 "main": "detect-indent",
173 "repository": {
174 "type": "git",
175 "url": "git://github.com/sindresorhus/detect-indent.git"
176 },
177 "scripts": {
178 "test": "mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"
179 },
180 "devDependencies": {
181 "mocha": "~1.12.0",
182 "chai": "~1.7.2",
183 "phantomjs": "~1.9.1",
184 "mocha-phantomjs": "~3.1.0"
185 },
186 "engines": {
187 "node": ">=0.8.0"
188 },
189 "_id": "[email protected]",
190 "dist": {
191 "shasum": "b9c31d35d514df22a8ec3725783da824c5f23c03",
192 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.2.tgz"
193 },
194 "_from": ".",
195 "_npmVersion": "1.3.8",
196 "_npmUser": {
197 "name": "sindresorhus",
198 "email": "[email protected]"
199 },
200 "maintainers": [
201 {
202 "name": "sindresorhus",
203 "email": "[email protected]"
204 }
205 ],
206 "directories": {}
207 },
208 "0.1.3": {
209 "name": "detect-indent",
210 "version": "0.1.3",
211 "description": "Detect the indentation of code",
212 "keywords": [
213 "indent",
214 "indentation",
215 "detect",
216 "infer",
217 "identify",
218 "code",
219 "string",
220 "text",
221 "source",
222 "space",
223 "tab"
224 ],
225 "homepage": "https://github.com/sindresorhus/detect-indent",
226 "bugs": {
227 "url": "https://github.com/sindresorhus/detect-indent/issues"
228 },
229 "license": "MIT",
230 "author": {
231 "name": "Sindre Sorhus",
232 "email": "[email protected]",
233 "url": "http://sindresorhus.com"
234 },
235 "files": [
236 "detect-indent.js"
237 ],
238 "main": "detect-indent",
239 "repository": {
240 "type": "git",
241 "url": "git://github.com/sindresorhus/detect-indent.git"
242 },
243 "scripts": {
244 "test": "mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"
245 },
246 "devDependencies": {
247 "mocha": "~1.12.0",
248 "chai": "~1.7.2",
249 "phantomjs": "~1.9.1",
250 "mocha-phantomjs": "~3.1.0"
251 },
252 "engines": {
253 "node": ">=0.8.0"
254 },
255 "_id": "[email protected]",
256 "dist": {
257 "shasum": "76e6cf5a5fc734e3b4eec4060a43ecd32ecad9f9",
258 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.3.tgz"
259 },
260 "_from": ".",
261 "_npmVersion": "1.3.10",
262 "_npmUser": {
263 "name": "sindresorhus",
264 "email": "[email protected]"
265 },
266 "maintainers": [
267 {
268 "name": "sindresorhus",
269 "email": "[email protected]"
270 }
271 ],
272 "directories": {}
273 },
274 "0.1.4": {
275 "name": "detect-indent",
276 "version": "0.1.4",
277 "description": "Detect the indentation of code",
278 "keywords": [
279 "indent",
280 "indentation",
281 "detect",
282 "infer",
283 "identify",
284 "code",
285 "string",
286 "text",
287 "source",
288 "space",
289 "tab"
290 ],
291 "license": "MIT",
292 "author": {
293 "name": "Sindre Sorhus",
294 "email": "[email protected]",
295 "url": "http://sindresorhus.com"
296 },
297 "files": [
298 "detect-indent.js"
299 ],
300 "main": "detect-indent",
301 "repository": {
302 "type": "git",
303 "url": "git://github.com/sindresorhus/detect-indent.git"
304 },
305 "scripts": {
306 "test": "mocha && phantomjs node_modules/mocha-phantomjs/lib/mocha-phantomjs.coffee test/test.html"
307 },
308 "devDependencies": {
309 "mocha": "~1.12.0",
310 "chai": "~1.7.2",
311 "phantomjs": "~1.9.1",
312 "mocha-phantomjs": "~3.1.0"
313 },
314 "engines": {
315 "node": ">=0.8.0"
316 },
317 "bugs": {
318 "url": "https://github.com/sindresorhus/detect-indent/issues"
319 },
320 "homepage": "https://github.com/sindresorhus/detect-indent",
321 "_id": "[email protected]",
322 "dist": {
323 "shasum": "c28e1303c1c4ad5ce0549902b884043afc5906b0",
324 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-0.1.4.tgz"
325 },
326 "_from": ".",
327 "_npmVersion": "1.4.6",
328 "_npmUser": {
329 "name": "sindresorhus",
330 "email": "[email protected]"
331 },
332 "maintainers": [
333 {
334 "name": "sindresorhus",
335 "email": "[email protected]"
336 }
337 ],
338 "directories": {}
339 },
340 "0.2.0": {
341 "name": "detect-indent",
342 "version": "0.2.0",
343 "description": "Detect the indentation of code",
344 "license": "MIT",
345 "repository": {
346 "type": "git",
347 "url": "git://github.com/sindresorhus/detect-indent"
348 },
349 "bin": {
350 "detect-indent": "cli.js"
351 },
352 "author": {
353 "name": "Sindre Sorhus",
354 "email": "[email protected]",
355 "url": "http://sindresorhus.com"
356 },
357 "engines": {
358 "node": ">=0.10.0"
359 },
360 "scripts": {
361 "test": "mocha"
362 },
363 "files": [
364 "index.js",
365 "cli.js"
366 ],
367 "keywords": [
368 "cli",
369 "bin",
370 "indent",
371 "indentation",
372 "detect",
373 "infer",
374 "identify",
375 "code",
376 "string",
377 "text",
378 "source",
379 "space",
380 "tab"
381 ],
382 "dependencies": {
383 "get-stdin": "^0.1.0",
384 "minimist": "^0.1.0"
385 },
386 "devDependencies": {
387 "mocha": "*"
388 },
389 "bugs": {
390 "url": "https://github.com/sindresorhus/detect-indent/issues"
391 },
392 "homepage": "https://github.com/sindresorhus/detect-indent",
393 "_id": "[email protected]",
394 "_shasum": "042914498979ac2d9f3c73e4ff3e6877d3bc92b6",
395 "_from": ".",
396 "_npmVersion": "1.4.9",
397 "_npmUser": {
398 "name": "sindresorhus",
399 "email": "[email protected]"
400 },
401 "maintainers": [
402 {
403 "name": "sindresorhus",
404 "email": "[email protected]"
405 }
406 ],
407 "dist": {
408 "shasum": "042914498979ac2d9f3c73e4ff3e6877d3bc92b6",
409 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-0.2.0.tgz"
410 },
411 "directories": {}
412 },
413 "1.0.0": {
414 "name": "detect-indent",
415 "version": "1.0.0",
416 "description": "Detect the indentation of code",
417 "license": "MIT",
418 "repository": {
419 "type": "git",
420 "url": "https://github.com/sindresorhus/detect-indent"
421 },
422 "author": {
423 "name": "Sindre Sorhus",
424 "email": "[email protected]",
425 "url": "http://sindresorhus.com"
426 },
427 "bin": {
428 "detect-indent": "cli.js"
429 },
430 "engines": {
431 "node": ">=0.10.0"
432 },
433 "scripts": {
434 "test": "mocha"
435 },
436 "files": [
437 "index.js",
438 "cli.js"
439 ],
440 "keywords": [
441 "cli",
442 "bin",
443 "indent",
444 "indentation",
445 "detect",
446 "infer",
447 "identify",
448 "code",
449 "string",
450 "text",
451 "source",
452 "space",
453 "tab"
454 ],
455 "dependencies": {
456 "get-stdin": "^3.0.0",
457 "minimist": "^1.1.0",
458 "strip-comments": "^0.3.2"
459 },
460 "devDependencies": {
461 "mocha": "*"
462 },
463 "gitHead": "86440344bcefa5245076e6c6516ac1b2d80a4ef1",
464 "bugs": {
465 "url": "https://github.com/sindresorhus/detect-indent/issues"
466 },
467 "homepage": "https://github.com/sindresorhus/detect-indent",
468 "_id": "[email protected]",
469 "_shasum": "17f17ae5b44c740ae89bd386b495187b378a0456",
470 "_from": ".",
471 "_npmVersion": "1.4.23",
472 "_npmUser": {
473 "name": "sindresorhus",
474 "email": "[email protected]"
475 },
476 "maintainers": [
477 {
478 "name": "sindresorhus",
479 "email": "[email protected]"
480 }
481 ],
482 "dist": {
483 "shasum": "17f17ae5b44c740ae89bd386b495187b378a0456",
484 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-1.0.0.tgz"
485 },
486 "directories": {}
487 },
488 "1.0.1": {
489 "name": "detect-indent",
490 "version": "1.0.1",
491 "description": "Detect the indentation of code",
492 "license": "MIT",
493 "repository": {
494 "type": "git",
495 "url": "https://github.com/sindresorhus/detect-indent"
496 },
497 "author": {
498 "name": "Sindre Sorhus",
499 "email": "[email protected]",
500 "url": "http://sindresorhus.com"
501 },
502 "bin": {
503 "detect-indent": "cli.js"
504 },
505 "engines": {
506 "node": ">=0.10.0"
507 },
508 "scripts": {
509 "test": "mocha"
510 },
511 "files": [
512 "index.js",
513 "cli.js"
514 ],
515 "keywords": [
516 "cli",
517 "bin",
518 "indent",
519 "indentation",
520 "detect",
521 "infer",
522 "identify",
523 "code",
524 "string",
525 "text",
526 "source",
527 "space",
528 "tab"
529 ],
530 "dependencies": {
531 "get-stdin": "^3.0.0",
532 "minimist": "^1.1.0",
533 "strip-comments": "^0.3.2"
534 },
535 "devDependencies": {
536 "mocha": "*"
537 },
538 "gitHead": "e9caef6f10d89963f55fc0d42e061d770e96683e",
539 "bugs": {
540 "url": "https://github.com/sindresorhus/detect-indent/issues"
541 },
542 "homepage": "https://github.com/sindresorhus/detect-indent",
543 "_id": "[email protected]",
544 "_shasum": "86f3496242b52c910d49876cb993add8bed1f1bd",
545 "_from": ".",
546 "_npmVersion": "2.1.2",
547 "_nodeVersion": "0.10.32",
548 "_npmUser": {
549 "name": "sindresorhus",
550 "email": "[email protected]"
551 },
552 "maintainers": [
553 {
554 "name": "sindresorhus",
555 "email": "[email protected]"
556 }
557 ],
558 "dist": {
559 "shasum": "86f3496242b52c910d49876cb993add8bed1f1bd",
560 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-1.0.1.tgz"
561 },
562 "directories": {}
563 },
564 "2.0.0": {
565 "name": "detect-indent",
566 "version": "2.0.0",
567 "description": "Detect the indentation of code",
568 "license": "MIT",
569 "repository": {
570 "type": "git",
571 "url": "https://github.com/sindresorhus/detect-indent"
572 },
573 "author": {
574 "name": "Sindre Sorhus",
575 "email": "[email protected]",
576 "url": "http://sindresorhus.com"
577 },
578 "bin": {
579 "detect-indent": "cli.js"
580 },
581 "engines": {
582 "node": ">=0.10.0"
583 },
584 "scripts": {
585 "test": "mocha"
586 },
587 "files": [
588 "index.js",
589 "cli.js"
590 ],
591 "keywords": [
592 "cli",
593 "bin",
594 "indent",
595 "indentation",
596 "detect",
597 "infer",
598 "identify",
599 "code",
600 "string",
601 "text",
602 "source",
603 "space",
604 "tab"
605 ],
606 "dependencies": {
607 "get-stdin": "^3.0.0",
608 "minimist": "^1.1.0",
609 "repeating": "^1.1.0"
610 },
611 "devDependencies": {
612 "mocha": "*"
613 },
614 "gitHead": "401f402f06ecc897ba6726440ec93375673d4cc0",
615 "bugs": {
616 "url": "https://github.com/sindresorhus/detect-indent/issues"
617 },
618 "homepage": "https://github.com/sindresorhus/detect-indent",
619 "_id": "[email protected]",
620 "_shasum": "720ff51e4d97b76884f6bf57292348b13dfde939",
621 "_from": ".",
622 "_npmVersion": "2.1.4",
623 "_nodeVersion": "0.10.32",
624 "_npmUser": {
625 "name": "sindresorhus",
626 "email": "[email protected]"
627 },
628 "maintainers": [
629 {
630 "name": "sindresorhus",
631 "email": "[email protected]"
632 }
633 ],
634 "dist": {
635 "shasum": "720ff51e4d97b76884f6bf57292348b13dfde939",
636 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-2.0.0.tgz"
637 },
638 "directories": {}
639 },
640 "3.0.0": {
641 "name": "detect-indent",
642 "version": "3.0.0",
643 "description": "Detect the indentation of code",
644 "license": "MIT",
645 "repository": {
646 "type": "git",
647 "url": "https://github.com/sindresorhus/detect-indent"
648 },
649 "author": {
650 "name": "Sindre Sorhus",
651 "email": "[email protected]",
652 "url": "http://sindresorhus.com"
653 },
654 "bin": {
655 "detect-indent": "cli.js"
656 },
657 "engines": {
658 "node": ">=0.10.0"
659 },
660 "scripts": {
661 "test": "mocha"
662 },
663 "files": [
664 "index.js",
665 "cli.js"
666 ],
667 "keywords": [
668 "cli",
669 "bin",
670 "indent",
671 "indentation",
672 "detect",
673 "infer",
674 "identify",
675 "code",
676 "string",
677 "text",
678 "source",
679 "space",
680 "tab"
681 ],
682 "dependencies": {
683 "get-stdin": "^3.0.0",
684 "minimist": "^1.1.0",
685 "repeating": "^1.1.0"
686 },
687 "devDependencies": {
688 "mocha": "*"
689 },
690 "gitHead": "303b97bc44497bbfeb01eb4ea27753c82156aef6",
691 "bugs": {
692 "url": "https://github.com/sindresorhus/detect-indent/issues"
693 },
694 "homepage": "https://github.com/sindresorhus/detect-indent",
695 "_id": "[email protected]",
696 "_shasum": "7a12c4b61be4ebc170cd6d416ce43754124637d8",
697 "_from": ".",
698 "_npmVersion": "2.1.5",
699 "_nodeVersion": "0.10.32",
700 "_npmUser": {
701 "name": "sindresorhus",
702 "email": "[email protected]"
703 },
704 "maintainers": [
705 {
706 "name": "sindresorhus",
707 "email": "[email protected]"
708 }
709 ],
710 "dist": {
711 "shasum": "7a12c4b61be4ebc170cd6d416ce43754124637d8",
712 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-3.0.0.tgz"
713 },
714 "directories": {}
715 },
716 "3.0.1": {
717 "name": "detect-indent",
718 "version": "3.0.1",
719 "description": "Detect the indentation of code",
720 "license": "MIT",
721 "repository": {
722 "type": "git",
723 "url": "https://github.com/sindresorhus/detect-indent"
724 },
725 "author": {
726 "name": "Sindre Sorhus",
727 "email": "[email protected]",
728 "url": "http://sindresorhus.com"
729 },
730 "bin": {
731 "detect-indent": "cli.js"
732 },
733 "engines": {
734 "node": ">=0.10.0"
735 },
736 "scripts": {
737 "test": "mocha"
738 },
739 "files": [
740 "index.js",
741 "cli.js"
742 ],
743 "keywords": [
744 "cli",
745 "bin",
746 "indent",
747 "indentation",
748 "detect",
749 "infer",
750 "identify",
751 "code",
752 "string",
753 "text",
754 "source",
755 "space",
756 "tab"
757 ],
758 "dependencies": {
759 "get-stdin": "^4.0.1",
760 "minimist": "^1.1.0",
761 "repeating": "^1.1.0"
762 },
763 "devDependencies": {
764 "mocha": "*"
765 },
766 "gitHead": "c046bec94ac5eefeb67ae4501d556c8dcec2914e",
767 "bugs": {
768 "url": "https://github.com/sindresorhus/detect-indent/issues"
769 },
770 "homepage": "https://github.com/sindresorhus/detect-indent",
771 "_id": "[email protected]",
772 "_shasum": "9dc5e5ddbceef8325764b9451b02bc6d54084f75",
773 "_from": ".",
774 "_npmVersion": "2.5.1",
775 "_nodeVersion": "0.12.0",
776 "_npmUser": {
777 "name": "sindresorhus",
778 "email": "[email protected]"
779 },
780 "maintainers": [
781 {
782 "name": "sindresorhus",
783 "email": "[email protected]"
784 }
785 ],
786 "dist": {
787 "shasum": "9dc5e5ddbceef8325764b9451b02bc6d54084f75",
788 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-3.0.1.tgz"
789 },
790 "directories": {}
791 },
792 "4.0.0": {
793 "name": "detect-indent",
794 "version": "4.0.0",
795 "description": "Detect the indentation of code",
796 "license": "MIT",
797 "repository": {
798 "type": "git",
799 "url": "https://github.com/sindresorhus/detect-indent"
800 },
801 "author": {
802 "name": "Sindre Sorhus",
803 "email": "[email protected]",
804 "url": "sindresorhus.com"
805 },
806 "engines": {
807 "node": ">=0.10.0"
808 },
809 "scripts": {
810 "test": "xo && ava"
811 },
812 "files": [
813 "index.js"
814 ],
815 "keywords": [
816 "indent",
817 "indentation",
818 "detect",
819 "infer",
820 "identify",
821 "code",
822 "string",
823 "text",
824 "source",
825 "space",
826 "tab"
827 ],
828 "dependencies": {
829 "repeating": "^2.0.0"
830 },
831 "devDependencies": {
832 "ava": "*",
833 "xo": "*"
834 },
835 "xo": {
836 "ignores": [
837 "fixture/**"
838 ]
839 },
840 "gitHead": "dbbc78fcb37907116eb120a8324070a1df0e8d86",
841 "bugs": {
842 "url": "https://github.com/sindresorhus/detect-indent/issues"
843 },
844 "homepage": "https://github.com/sindresorhus/detect-indent",
845 "_id": "[email protected]",
846 "_shasum": "f76d064352cdf43a1cb6ce619c4ee3a9475de208",
847 "_from": ".",
848 "_npmVersion": "2.13.3",
849 "_nodeVersion": "3.0.0",
850 "_npmUser": {
851 "name": "sindresorhus",
852 "email": "[email protected]"
853 },
854 "dist": {
855 "shasum": "f76d064352cdf43a1cb6ce619c4ee3a9475de208",
856 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz"
857 },
858 "maintainers": [
859 {
860 "name": "sindresorhus",
861 "email": "[email protected]"
862 }
863 ],
864 "directories": {}
865 },
866 "5.0.0": {
867 "name": "detect-indent",
868 "version": "5.0.0",
869 "description": "Detect the indentation of code",
870 "license": "MIT",
871 "repository": {
872 "type": "git",
873 "url": "git+https://github.com/sindresorhus/detect-indent.git"
874 },
875 "author": {
876 "name": "Sindre Sorhus",
877 "email": "[email protected]",
878 "url": "sindresorhus.com"
879 },
880 "engines": {
881 "node": ">=4"
882 },
883 "scripts": {
884 "test": "xo && ava"
885 },
886 "files": [
887 "index.js"
888 ],
889 "keywords": [
890 "indent",
891 "indentation",
892 "detect",
893 "infer",
894 "identify",
895 "code",
896 "string",
897 "text",
898 "source",
899 "space",
900 "tab"
901 ],
902 "devDependencies": {
903 "ava": "*",
904 "xo": "*"
905 },
906 "xo": {
907 "esnext": true
908 },
909 "gitHead": "6c7485c2e5b74abc11a8870b550a9d385beac9e0",
910 "bugs": {
911 "url": "https://github.com/sindresorhus/detect-indent/issues"
912 },
913 "homepage": "https://github.com/sindresorhus/detect-indent#readme",
914 "_id": "[email protected]",
915 "_shasum": "3871cc0a6a002e8c3e5b3cf7f336264675f06b9d",
916 "_from": ".",
917 "_npmVersion": "2.15.9",
918 "_nodeVersion": "4.6.0",
919 "_npmUser": {
920 "name": "sindresorhus",
921 "email": "[email protected]"
922 },
923 "dist": {
924 "shasum": "3871cc0a6a002e8c3e5b3cf7f336264675f06b9d",
925 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz"
926 },
927 "maintainers": [
928 {
929 "name": "sindresorhus",
930 "email": "[email protected]"
931 }
932 ],
933 "_npmOperationalInternal": {
934 "host": "packages-18-east.internal.npmjs.com",
935 "tmp": "tmp/detect-indent-5.0.0.tgz_1476992892715_0.3219247553497553"
936 },
937 "directories": {}
938 },
939 "6.0.0": {
940 "name": "detect-indent",
941 "version": "6.0.0",
942 "description": "Detect the indentation of code",
943 "license": "MIT",
944 "repository": {
945 "type": "git",
946 "url": "git+https://github.com/sindresorhus/detect-indent.git"
947 },
948 "author": {
949 "name": "Sindre Sorhus",
950 "email": "[email protected]",
951 "url": "sindresorhus.com"
952 },
953 "engines": {
954 "node": ">=8"
955 },
956 "scripts": {
957 "test": "xo && ava && tsd"
958 },
959 "keywords": [
960 "indent",
961 "indentation",
962 "detect",
963 "infer",
964 "identify",
965 "code",
966 "string",
967 "text",
968 "source",
969 "space",
970 "tab"
971 ],
972 "devDependencies": {
973 "ava": "^1.4.1",
974 "tsd": "^0.7.2",
975 "xo": "^0.24.0"
976 },
977 "xo": {
978 "ignores": [
979 "fixture"
980 ]
981 },
982 "gitHead": "e42875ce2ce2e3d63f6ecd4fe79150943340da9e",
983 "bugs": {
984 "url": "https://github.com/sindresorhus/detect-indent/issues"
985 },
986 "homepage": "https://github.com/sindresorhus/detect-indent#readme",
987 "_id": "[email protected]",
988 "_nodeVersion": "10.15.3",
989 "_npmVersion": "6.9.0",
990 "_npmUser": {
991 "name": "sindresorhus",
992 "email": "[email protected]"
993 },
994 "dist": {
995 "integrity": "sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==",
996 "shasum": "0abd0f549f69fc6659a254fe96786186b6f528fd",
997 "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.0.0.tgz",
998 "fileCount": 5,
999 "unpackedSize": 7836,
1000 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyELcCRA9TVsSAnZWagAAJswP/3XOKqS/qO/ZmjvcbzWH\nApfud92neoQ1L5YhhZcs5ERoiQc6WvdrklTBFf9FDavo6UWq1lq5RoUx91fD\nG006HvmGJLXgFJLK7LjUo2jA1E1XuIsVv/eivWDb3BKaWvxOoU2q61ZYbjv2\nCsiMaumQ4zWZectJ6h0KWDA/9eraGJXmtgrqZJMv3AAlKEPaKC3tMpfDBb8J\ngDXLv1kH4+wDZpn+3K8PgrO/5sfm1ls+gcQyaiaPGkAvsfylsuDKNZ1mcLa7\nWmY1r4dbX73TkUXiv4dpTVGkg0PJp/Tb2xww4Uv590AkZcR1BzATjvNDpNvK\nDLeg8aynKVdhHDRiii9Zd+EdvKNLV8Avb957UErQd+60LI0HX2pINmbjK/lf\ngVsxHrQD3IfJIOlb82HjkLf1Fs0ZD2euAHXRb8MuhejsAmU+iVogksUpTK8i\nogBooPyPsp8iJctz0VoUiipOq/kDndZXQriF0yK7i3KEA0BzNLy2+fTPqV9i\nDeOJ1S6LVjghCbQa6fIAvQmiHl0iMeYHfuQ8n27aifvGaDaphkUiHlfotRk8\nCIVNhE9kWrWTk+J5845M2uCWDMMLs0lbHt3UaC4NiHvyNc86ACMuaOw0YE1m\nVSmU/J9fFDVAdiyt7UtOjWIwdAiVBWyhiXZU96PdSlzkhKQuhJoiL0haRtHd\n4Fcj\r\n=t2/o\r\n-----END PGP SIGNATURE-----\r\n"
1001 },
1002 "maintainers": [
1003 {
1004 "name": "sindresorhus",
1005 "email": "[email protected]"
1006 }
1007 ],
1008 "directories": {},
1009 "_npmOperationalInternal": {
1010 "host": "s3://npm-registry-packages",
1011 "tmp": "tmp/detect-indent_6.0.0_1556628188019_0.9294671604278244"
1012 },
1013 "_hasShrinkwrap": false
1014 }
1015 },
1016 "readme": "# detect-indent [![Build Status](https://travis-ci.org/sindresorhus/detect-indent.svg?branch=master)](https://travis-ci.org/sindresorhus/detect-indent)\n\n> Detect the indentation of code\n\nPass in a string of any kind of text and get the indentation.\n\n\n## Use cases\n\n- Persisting the indentation when modifying a file.\n- Have new content match the existing indentation.\n- Setting the right indentation in your editor.\n\n\n## Install\n\n```\n$ npm install detect-indent\n```\n\n\n## Usage\n\nHere we modify a JSON file while persisting the indentation:\n\n```js\nconst fs = require('fs');\nconst detectIndent = require('detect-indent');\n\n/*\n{\n \"ilove\": \"pizza\"\n}\n*/\nconst file = fs.readFileSync('foo.json', 'utf8');\n\n// Tries to detect the indentation and falls back to a default if it can't\nconst indent = detectIndent(file).indent || ' ';\n\nconst json = JSON.parse(file);\n\njson.ilove = 'unicorns';\n\nfs.writeFileSync('foo.json', JSON.stringify(json, null, indent));\n/*\n{\n \"ilove\": \"unicorns\"\n}\n*/\n```\n\n\n## API\n\nAccepts a string and returns an object with stats about the indentation:\n\n* `amount` {number} - Amount of indentation, for example `2`\n* `type` {'tab' | 'space' | undefined} - Type of indentation. Possible values are `'tab'`, `'space'` or `undefined` if no indentation is detected\n* `indent` {string} - Actual indentation\n\n\n## Algorithm\n\nThe current algorithm looks for the most common difference between two consecutive non-empty lines.\n\nIn the following example, even if the 4-space indentation is used 3 times whereas the 2-space one is used 2 times, it is detected as less used because there were only 2 differences with this value instead of 4 for the 2-space indentation:\n\n```css\nhtml {\n box-sizing: border-box;\n}\n\nbody {\n background: gray;\n}\n\np {\n line-height: 1.3em;\n margin-top: 1em;\n text-indent: 2em;\n}\n```\n\n[Source.](https://medium.com/@heatherarthur/detecting-code-indentation-eff3ed0fb56b#3918)\n\nFurthermore, if there are more than one most used difference, the indentation with the most lines is selected.\n\nIn the following example, the indentation is detected as 4-spaces:\n\n```css\nbody {\n background: gray;\n}\n\np {\n line-height: 1.3em;\n margin-top: 1em;\n text-indent: 2em;\n}\n```\n\n\n## Related\n\n- [detect-indent-cli](https://github.com/sindresorhus/detect-indent-cli) - CLI for this module\n- [detect-newline](https://github.com/sindresorhus/detect-newline) - Detect the dominant newline character of a string\n- [detect-indent-rs](https://github.com/stefanpenner/detect-indent-rs) - Rust port\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
1017 "maintainers": [
1018 {
1019 "name": "sindresorhus",
1020 "email": "[email protected]"
1021 }
1022 ],
1023 "time": {
1024 "modified": "2019-04-30T12:43:13.785Z",
1025 "created": "2013-08-11T00:28:27.860Z",
1026 "0.1.0": "2013-08-11T00:28:31.046Z",
1027 "0.1.1": "2013-08-13T17:54:38.934Z",
1028 "0.1.2": "2013-08-30T08:34:24.581Z",
1029 "0.1.3": "2013-09-25T22:03:28.005Z",
1030 "0.1.4": "2014-04-29T19:20:03.852Z",
1031 "0.2.0": "2014-06-16T16:40:58.661Z",
1032 "1.0.0": "2014-09-11T11:02:05.021Z",
1033 "1.0.1": "2014-10-03T22:36:45.242Z",
1034 "2.0.0": "2014-10-26T03:05:04.210Z",
1035 "3.0.0": "2014-11-23T03:45:43.877Z",
1036 "3.0.1": "2015-02-16T17:31:25.306Z",
1037 "4.0.0": "2015-09-07T09:38:01.807Z",
1038 "5.0.0": "2016-10-20T19:48:14.523Z",
1039 "6.0.0": "2019-04-30T12:43:08.146Z"
1040 },
1041 "author": {
1042 "name": "Sindre Sorhus",
1043 "email": "[email protected]",
1044 "url": "sindresorhus.com"
1045 },
1046 "repository": {
1047 "type": "git",
1048 "url": "git+https://github.com/sindresorhus/detect-indent.git"
1049 },
1050 "users": {
1051 "passy": true,
1052 "johnnyscript": true,
1053 "demian_dark": true,
1054 "rocket0191": true,
1055 "liunian": true
1056 },
1057 "homepage": "https://github.com/sindresorhus/detect-indent#readme",
1058 "keywords": [
1059 "indent",
1060 "indentation",
1061 "detect",
1062 "infer",
1063 "identify",
1064 "code",
1065 "string",
1066 "text",
1067 "source",
1068 "space",
1069 "tab"
1070 ],
1071 "bugs": {
1072 "url": "https://github.com/sindresorhus/detect-indent/issues"
1073 },
1074 "license": "MIT",
1075 "readmeFilename": "readme.md"
1076 }