{"name":"toposource","version":"1.0.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 ./build.cjs && rename -f 's/\\.js$/\\.mjs/' target/esm/*.js","build:cjs":"node ./build.cjs --cjs","build:dts":"tsc --emitDeclarationOnly --outDir target/dts","lint":"eslint src","lint:fix":"yarn style --fix","verify":"yarn lint && yarn test","test":"yarn test:unit","test:unit":"c8 -r html -r text -r lcov --exclude src/test -o ./target/coverage uvu -r tsm src/test/ts","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.0","@types/toposort":"^2.0.3","benchmark":"^2.1.4","c8":"^7.12.0","concurrently":"^7.6.0","esbuild":"^0.17.8","esbuild-node-externals":"^1.6.0","eslint":"^8.32.0","eslint-config-qiwi":"^2.0.8","toposort":"^2.0.2","tsm":"^2.3.0","typescript":"^4.9.4","uvu":"^0.5.6"},"keywords":["topological","sort","sorting","graphs","graph","dependency","list","dependencies","acyclic"],"contributors":[{"name":"Choro Abdymanapov","email":"oljekechoro@mail.ru"},{"name":"Anton Golub","email":"antongolub@antongolub.com"}],"license":"MIT","gitHead":"d823a59f2a3d39361120044a36443121809787f3","bugs":{"url":"https://github.com/semrel-extra/toposource/issues"},"homepage":"https://github.com/semrel-extra/toposource#readme","_id":"toposource@1.0.0","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-k3m4PT+CEiYmthzJyCI9OYwGuVvWm8XmN5gi3fo1cEPtBtrQA/bBEoYSkWq89e2VxwnLUDzgM6PM2oU82Sf9jg==","shasum":"e9ef83942fcc87f81ffc8d6af1ae80104c27a133","tarball":"http://registry-npm.ywwl.com/toposource/download/toposource-1.0.0.tgz","fileCount":7,"unpackedSize":8191,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0pRJWcC2bRFlPbtTLR5W1Zf3+Yq/XUcSzhk2irNysAQIgT8FRP58yGpV8i3L7wmYmd4lAu0rtpu2DZrCL7ozfDDI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj81/eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmowkg/+P8UP67ATf5hGmtjRHNd1yvSzzJ/7cl4hcXVPrhqZtNz5mg+r\r\nKZZ7pXGlESve2YAyW10+kgjq2OH2zFiUySmnX7PPQe8veJeAciM+ruka5eh9\r\nIWy/IO8/N0vFndx1CTh0qFeRjJ6/H/UhjOqLCrR0INbwRe5Fd/Z0RVGN5mbX\r\nhIkNyKmv2+dRZdZY4+QwyjPgXpIcHycAQF7Fuu0CMCkUEbADLzU4x+g9/3Xj\r\nHFVBWKrROjKQoVlWJGSDaz5Znk9mRZz63MWgJtc47MPqGFZdwBhsIDDCVzYk\r\nBk3KYMBoPZQlmqIqp8K3tWmJ2QK9IUlLIUQs05BK16PdWRRMoIaSFvpaYuuR\r\ntqbpgsdZhXmzdIG90PeRcxmwNTWEzGVt1zwQrAkbyd9DuT/vd48e5FCbg8WB\r\nFW/mIgOzkm8gso0duA6LNMKICt+Gw6B5ziBJ5sfVnuXCiUJ/cG+i1b4d5WYt\r\nZHmtlMcnt6iUSK4UA2LJ7u3Nh4053f60aJ/qfouX63Jc6U/uAA9XLXT/vSGj\r\n4fdkls3j1diy1tUb/DIc2GXAf0RxEzIWVrvbBqXoC9ZFGlIbuEE1LoPDsc7k\r\nmGK2wtrtieapb8OJl1E9aXXkyB//yAFyQNKh86tDKTwGmJ4F8YuZh+wsSwBE\r\nZ7RII8U79hUNTi0RS2QEBxlHgweX5M3fCaE=\r\n=gnbZ\r\n-----END PGP SIGNATURE-----\r\n","size":3458,"noattachment":false,"key":"/toposource/-/toposource-1.0.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.0.0_1676894174429_0.8884788837972208"},"_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":1676894174556,"_cnpm_publish_time":1676894174556,"dist-tags":{"latest":"1.2.0"}}