{"name":"deps-sort","version":"2.0.1","description":"sort module-deps output for deterministic browserify bundles","main":"index.js","bin":{"deps-sort":"bin/cmd.js"},"dependencies":{"JSONStream":"^1.0.3","shasum-object":"^1.0.0","subarg":"^1.0.0","through2":"^2.0.0"},"devDependencies":{"tap":"^2.2.0"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/substack/deps-sort.git"},"homepage":"https://github.com/substack/deps-sort","keywords":["dependency","graph","browser","browserify","module-deps","browser-pack","sorted","determinism"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","gitHead":"80b3ed883c1413fac8314b4766945bfbf3f7be8f","bugs":{"url":"https://github.com/substack/deps-sort/issues"},"_id":"deps-sort@2.0.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==","shasum":"9dfdc876d2bcec3386b6829ac52162cda9fa208d","tarball":"http://registry-npm.ywwl.com/deps-sort/download/deps-sort-2.0.1.tgz","fileCount":15,"unpackedSize":18205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduDIgCRA9TVsSAnZWagAAVH0P/3tbVm2aIa0HfDVKCuQ+\nIZ1qmm9G5XQA00fekFf/+vSVEAbPpWj5GILuvluFwvxyWSvhrk5th8+4qUjg\n69ZWwiTtd4Ysafmz8K5/dsmmJVMuCu7/l19Y0UFOh+xHOd418qzksOMELhXl\neq6mUhrzTWqHpKojKwq8VT6D6bft6cjzFwJv3UaiSrn2kGGjefaGW5EG1gR5\nb5tHK8E4oUrFMDNuMvxzqzVEGHaUwpuZNnCEckafRKixdWymvv9UgL0uV/Be\ni4GsMDWt6Cm2XhHVNUHpB5+EbWwjHqeEY3lWWxOPytLMhdnulfNXES2XTDJI\nlyQfe4FbVPKLlBE8iClUNV2pnWP5RcmJUaB59J4Ml2j3bRMGAK+y0P0NGsJH\nEg9f2UGfA0TjpCe5zPmtXFuYocYdyJz0ecWq6mlFpfztY/OwPFGmUcfSXO3J\nBkx0gK8/pEKAGLc2mOeBBnnMjLo/5UV/il/FJ67KlaQ2xWHCHjuHNt4dXWqE\nshAfyVTkeqgyetBWjXjtADZX2351/l/Q/l40TMdlR8hxEKVwywK0WOxDCOeU\nQ3T89+Y2MIzt2rC6pdZh24Z3stNw/VLHN0ePMHE4mWDV2UbWIzZuEgICYH/I\n3Sh97tNg1Qy3yW0qvLa/0Z51FMFu4okkCuvIc7yHEjR9juECxo+xpjl8uAiR\noFJ0\r\n=ZAQ1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+4A2/GJY0hRNK5FnZYo8hS+tl7a2DydbAx4IWTNo9bAiBWoYRg2xFD4GsPsYfUrg75f+yAl59cRxiNNzA7xqBJhw=="}],"size":4604,"noattachment":false,"key":"/deps-sort/-/deps-sort-2.0.1.tgz"},"maintainers":[{"email":"michael.williams@enspiral.com","name":"ahdinosaur"},{"email":"vestibule@anandthakker.net","name":"anandthakker"},{"email":"darawk@gmail.com","name":"ashaffer88"},{"email":"b@lupton.cc","name":"balupton"},{"email":"post.ben.here@gmail.com","name":"bpostlethwaite"},{"email":"bcomnes@gmail.com","name":"bret"},{"email":"calvin.metcalf@gmail.com","name":"cwmma"},{"email":"shtylman@gmail.com","name":"defunctzombie"},{"email":"dominic.tarr@gmail.com","name":"dominictarr"},{"email":"contact@elnounch.net","name":"elnounch"},{"email":"github@tixz.dk","name":"emilbayes"},{"email":"feross@feross.org","name":"feross"},{"email":"forbes@lindesay.co.uk","name":"forbeslindesay"},{"email":"pereira.filype@gmail.com","name":"fpereira1"},{"email":"garann@gmail.com","name":"garann"},{"email":"me@gkatsev.com","name":"gkatsev"},{"email":"renee@kooi.me","name":"goto-bus-stop"},{"email":"hughskennedy@gmail.com","name":"hughsk"},{"email":"fedor@indutny.com","name":"indutny"},{"email":"npm-public@jessemccarthy.net","name":"jmm"},{"email":"jprichardson@gmail.com","name":"jprichardson"},{"email":"jryans@gmail.com","name":"jryans"},{"email":"martin.heidegger@gmail.com","name":"leichtgewicht"},{"email":"lukechilds123@gmail.com","name":"lukechilds"},{"email":"mathiasbuus@gmail.com","name":"mafintosh"},{"email":"dave.des@gmail.com","name":"mattdesl"},{"email":"max@maxogden.com","name":"maxogden"},{"email":"palmermebane@gmail.com","name":"mellowmelon"},{"email":"parshap+npm@gmail.com","name":"parshap"},{"email":"peteris.krumins@gmail.com","name":"pkrumins"},{"email":"sethvincent@gmail.com","name":"sethvincent"},{"email":"maochenyan@gmail.com","name":"stevemao"},{"email":"substack@gmail.com","name":"substack"},{"email":"me@JoshDuff.com","name":"tehshrike"},{"email":"terinjokes@gmail.com","name":"terinjokes"},{"email":"thlorenz@gmx.de","name":"thlorenz"},{"email":"ungoldman@gmail.com","name":"ungoldman"},{"email":"yerko.palma@usach.cl","name":"yerkopalma"},{"email":"yoshuawuyts@gmail.com","name":"yoshuawuyts"},{"email":"zertosh@gmail.com","name":"zertosh"}],"_npmUser":{"name":"goto-bus-stop","email":"renee@kooi.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deps-sort_2.0.1_1572352543905_0.5637305586603332"},"_hasShrinkwrap":false,"readme":"# deps-sort\n\nsort [module-deps](https://npmjs.org/package/module-deps) output for deterministic\nbrowserify bundles\n\n[![build status](https://secure.travis-ci.org/browserify/deps-sort.png)](http://travis-ci.org/browserify/deps-sort)\n\n# example\n\n## command-line\n\n```\n$ for((i=0;i<5;i++)); do module-deps main.js | deps-sort | browser-pack | md5sum; done\ne9e630de2c62953140357db0444c3c3a  -\ne9e630de2c62953140357db0444c3c3a  -\ne9e630de2c62953140357db0444c3c3a  -\ne9e630de2c62953140357db0444c3c3a  -\ne9e630de2c62953140357db0444c3c3a  -\n```\n\nor using `browserify --deps` on a [voxeljs](http://voxeljs.com/) project:\n\n```\n$ for((i=0;i<5;i++)); do browserify --deps browser.js | deps-sort | browser-pack | md5sum; done\nfb418c74b53ba2e4cef7d01808b848e6  -\nfb418c74b53ba2e4cef7d01808b848e6  -\nfb418c74b53ba2e4cef7d01808b848e6  -\nfb418c74b53ba2e4cef7d01808b848e6  -\nfb418c74b53ba2e4cef7d01808b848e6  -\n```\n\n## api\n\nTo use this module programmatically, write streaming object data and read\nstreaming object data:\n\n``` js\nvar sort = require('../')();\nvar JSONStream = require('JSONStream');\nvar parse = JSONStream.parse([ true ]);\nvar stringify = JSONStream.stringify();\n\nprocess.stdin.pipe(parse).pipe(sort).pipe(stringify).pipe(process.stdout);\n```\n\n# methods\n\n``` js\nvar depsSort = require('deps-sort');\n```\n\n## var stream = depsSort(opts)\n\nReturn a new through `stream` that should get written\n[module-deps](https://npmjs.org/package/module-deps) objects and will output\nsorted objects.\n\n`opts` can be:\n\n* `opts.index` - when true, for each module-deps row, insert `row.index` with\nthe numeric index and `row.indexDeps` like `row.deps` but mapping require\nstrings to row indices\n\n* `opts.expose` - array of names or object mapping names to `true` not to mangle\nwith integer indexes when `opts.index` is turned on. If `opts.expose` maps names\nto strings, those strings will be used to resolve the indexed references.\n\n* `opts.dedupe` - set `row.dedupe` for files that match existing contents. Sets\n`row.dedupeIndex` when `opts.index` is enabled. When `row.dedupe` is set,\n`row.sameDeps` will be set to a boolean of whether the dependencies at the\ndedupe target match (true) or just the source content (false).\n\n# input objects\n\nInput objects are file objects in the [module-deps][] shape. They must at least\nhave these properties:\n\n* `row.id` - a unique identifier for the file\n* `row.source` - the file contents\n* `row.deps` - dependencies for this file, mapping strings as used in\n  `require()` to row IDs.\n\n# output objects\n\nAll the input properties, and:\n\n* `row.index` - when `opts.index` is true, the sorted numeric index of the row\n* `row.indexDeps` - like `row.deps`, but mapping to `row.index` instead of\n  `row.id`\n* `row.dedupe` - when `opts.dedupe` is true, contains the row ID of a file with\n  identical contents\n* `row.dedupeIndex` - like `row.dedupe`, but contains the `row.index` instead\n  of `row.id`\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install deps-sort\n```\n\n# license\n\nMIT\n\n[module-deps]: https://github.com/browserify/module-deps#output-objects\n","publish_time":1572352544053,"_cnpm_publish_time":1572352544053,"dist-tags":{"latest":"2.0.1"}}