{"name":"toposource","version":"1.1.0","description":"Directed graphs analyzer for parallel traversals","main":"./target/cjs/index.js","module":"./target/esm/index.mjs","types":"./target/dts/index.d.ts","exports":{".":{"require":"./target/cjs/index.js","import":"./target/esm/index.mjs","types":"./target/dts/index.d.ts"}},"publishConfig":{"access":"public"},"scripts":{"build":"concurrently 'npm:build:*'","build:esm":"node ./src/scripts/build.cjs && rename -f 's/\\.js$/\\.mjs/' target/esm/*.js","build:cjs":"node ./src/scripts/build.cjs --cjs","build:dts":"tsc --emitDeclarationOnly --outDir target/dts","build:docs":"typedoc --options src/main/typedoc","lint":"eslint -c src/test/lint/.eslintrc.json src","format":"yarn test:lint --fix","test":"concurrently 'npm:test:*'","test:lint":"eslint -c src/test/lint/.eslintrc.json src","test:unit":"c8 -r html -r text -r lcov --exclude ./src/test -o ./target/coverage uvu -r tsm src/test/ts","test:it":"uvu -r tsm src/test/js","test:bench":"node src/test/bench/index.mjs"},"repository":{"type":"git","url":"git+https://github.com/semrel-extra/toposource.git"},"devDependencies":{"@types/node":"^18.14.1","@types/toposort":"^2.0.3","benchmark":"^2.1.4","c8":"^7.13.0","concurrently":"^7.6.0","esbuild":"^0.17.10","esbuild-node-externals":"^1.6.0","eslint":"^8.34.0","eslint-config-qiwi":"^2.0.8","toposort":"^2.0.2","tsm":"^2.3.0","typedoc":"^0.23.25","typescript":"^4.9.5","uvu":"^0.5.6"},"keywords":["topological","sort","sorting","graphs","graph","dependency","list","dependencies","directed","acyclic","dag"],"contributors":[{"name":"Choro Abdymanapov","email":"oljekechoro@mail.ru"},{"name":"Anton Golub","email":"antongolub@antongolub.com"}],"license":"MIT","gitHead":"bc1f6bea8d5270a24dfec71f9fa280639ce5da71","bugs":{"url":"https://github.com/semrel-extra/toposource/issues"},"homepage":"https://github.com/semrel-extra/toposource#readme","_id":"toposource@1.1.0","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-+OuRfPbITeI9kiAkeVM5Fv8xFxnaYEySqkSo66EspFS8N49ZgzRfTffIzze9iFaMHaVOAAXng6XfpM8f03hkvg==","shasum":"3bee982d228f79c4a39d226bcaacd1320876a2b6","tarball":"http://registry-npm.ywwl.com/toposource/download/toposource-1.1.0.tgz","fileCount":8,"unpackedSize":11532,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg3Lr+jpmVQxWAEZ5zyXP3QyoxW+amlm2kklGYvH5ssgIhAPkgL8v00vxtWNnbjJ885qIp1xGCCZNU7M5O4UDXTZOa"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj95eAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/Kw//Z0IqIbqWOwpbpHx+IFArULk3mQ/lINMzJO4w38mRp8CkB54M\r\nnZnznbIrS6JR30mJ1BMWNyzPLRFlIxuRU1gP112B/+eoRFj3cab4yBSqidnP\r\nGNt13Z5XK3+bEI5br0NuFQkQfwNIK0QSnS29wMlOfsv7Dtzt/cYiL/+GL6Us\r\nNpArvXF9+o9j0caztXWe6YmaAL/xdzqeDrhVfB4bGDWAauAh1IGpirdmM2Pd\r\npBc5zq1tPzDFjk7+eWJGmyb3G5uxRY9eBN/NSo4CsGFWN6GqgocgVkBEurZM\r\nRfJdrjaxIswzRvQNhwZONG561r7Nj2E6mF0Lpn3r/byOfVcYgBcsvhNZNDty\r\nSWq9BOFu8zs8xB3XdhBBv/JFmBfXuxflfxhXpLLc9LPZxt8TGtj3V/+OaaSH\r\ndHeH1NWMhJM4NbJY4msR6Q+m5v6C4smQ9sR+dFXTZQpS/STXt98SQ2dQqrkA\r\nKoaBmcQmrtITdVMLVqWfI9SLoMsfa8ICwfIRAfktVwpjIpBNMBws786PXUNH\r\nLNJq3dinly3QW52XUJ9gxjzgIkqeM7F8rStCvuK4ySaqwYAlLlrymUfqlb2b\r\nqPHDhzj77sTBraGuxc0lR6sRzLd8TQEok4SMPgcptfLVf4a5mp0mS1LJ+CKl\r\njmnDm679G9qzEv5Jj+Rr4Guytyb+XphDrQM=\r\n=28st\r\n-----END PGP SIGNATURE-----\r\n","size":3749,"noattachment":false,"key":"/toposource/-/toposource-1.1.0.tgz"},"_npmUser":{"name":"semrel-extra-bot","email":"semrel-extra-bot@hotmail.com"},"directories":{},"maintainers":[{"name":"semrel-extra-bot","email":"semrel-extra-bot@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toposource_1.1.0_1677170560007_0.4628339283151752"},"_hasShrinkwrap":false,"readme":"# toposource\n[![CI](https://github.com/semrel-extra/toposource/actions/workflows/ci.yaml/badge.svg?branch=master&event=push)](https://github.com/semrel-extra/toposource/actions/workflows/ci.yaml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/41fea7047ed5521e2075/maintainability)](https://codeclimate.com/github/semrel-extra/toposource/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/41fea7047ed5521e2075/test_coverage)](https://codeclimate.com/github/semrel-extra/toposource/test_coverage)\n> Directed graphs analyzer for parallel traversals\n\n## Usage\n\n```ts\nimport { analyze } from 'toposource'\n\nanalyze([['a', 'b'], ['b', 'c'], ['d', 'c'], ['e', 'f']])\n// →\n{\n  next: new Map([\n    ['a', ['b']],\n    ['b', ['c']],\n    ['d', ['c']],\n    ['e', ['f']]\n  ]),\n  prev: new Map([\n    ['b', ['a']],\n    ['c', ['b', 'd']],\n    ['f', ['e']]\n  ]),\n  sources: [ 'a', 'd', 'e' ],\n  queue: ['a', 'd', 'e', 'b', 'c', 'f'],\n  graphs: [{\n    sources: ['a', 'd'],\n    nodes: new Set(['a', 'b', 'd', 'c'])\n  }, {\n    sources: ['e'],\n    nodes: new Set(['e', 'f'])\n  },\n}\n```\n\n## Alternatives\n* [toposort](https://github.com/marcelklehr/toposort)\n* [batching-toposort](https://github.com/glebec/batching-toposort)\n* [js-graph-algorithms](https://github.com/chen0040/js-graph-algorithms)\n* [topology-runner](https://github.com/smartprocure/topology-runner)\n* [graph-data-structure](https://github.com/datavis-tech/graph-data-structure)\n\n## License\n[MIT](./LICENSE)\n","publish_time":1677170560192,"_cnpm_publish_time":1677170560192,"dist-tags":{"latest":"1.2.0"}}