{"name":"denque","version":"2.0.1","description":"The fastest javascript implementation of a double-ended queue. Used by the official Redis, MongoDB, MariaDB & MySQL libraries for Node.js and many other libraries. Maintains compatability with deque.","main":"index.js","engines":{"node":">=0.10"},"keywords":["data-structure","data-structures","queue","double","end","ended","deque","denque","double-ended-queue"],"scripts":{"test":"istanbul cover --report lcov _mocha && npm run typescript","coveralls":"cat ./coverage/lcov.info | coveralls","typescript":"tsc --project ./test/type/tsconfig.json","benchmark_thousand":"node benchmark/thousand","benchmark_2mil":"node benchmark/two_million","benchmark_splice":"node benchmark/splice","benchmark_remove":"node benchmark/remove","benchmark_removeOne":"node benchmark/removeOne"},"repository":{"type":"git","url":"git+https://github.com/invertase/denque.git"},"license":"Apache-2.0","author":{"name":"Invertase","email":"oss@invertase.io","url":"http://github.com/invertase/"},"contributors":[{"name":"Mike Diarmid","email":"mike@invertase.io","url":"Salakar"}],"bugs":{"url":"https://github.com/invertase/denque/issues"},"homepage":"https://docs.page/invertase/denque","devDependencies":{"benchmark":"^2.1.4","codecov":"^3.8.3","double-ended-queue":"^2.1.0-0","istanbul":"^0.4.5","mocha":"^3.5.3","typescript":"^3.4.1"},"gitHead":"a299325e871dfa8f58c326b67e9bb30ba595a6ed","_id":"denque@2.0.1","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==","shasum":"bcef4c1b80dc32efe97515744f21a4229ab8934a","tarball":"http://registry-npm.ywwl.com/denque/download/denque-2.0.1.tgz","fileCount":6,"unpackedSize":28946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLhS2CRA9TVsSAnZWagAAX10P/RXJ8YNPQGRQjRPduyT4\nzcFxW6tKZ/ZQ/az3oPFePnBKUu2pduU0kFQljEMtTvNtmWowt5om4t0e2c1O\n8y8bi7U/pE2pJkveKOXRMIaRfsLBpy88gJ1Lz07GY1GJriQfF2qtp4224aUZ\nMWoNcM2wKzB/B+hhdVqtNLyljw3fZyTqJ+3Mpvp8W669FTbD0HJ39t1ctGR+\n35iMgmceEJri1AK3qpyAIHG+Bqi20MUcd8qamAZkQ6J1ddmA8YRD+mO9M+WY\nE8D2rneuXc8Y9jyKK5HQXgQhn1AgoU+eGMgdYqrXNY/XDYaAQiUQk9FCA9+6\ni0yXf5081NXd5umIbA+PmFAxFsNpfgtxbeXznjU299MnP4TTk0gWNK+z5cAe\nqt9msoJxyq3cq9Vo3U0bBIPBqZNnHCFETmnMaJUqZkP5fYBvzs6B3wG1MoD/\nLSIIP2mQD5Kd89pY9P0V12T+3bbmpcMeKcYh60tTuJJnWu6nuAijwUJkQSKg\norfNeDC3YTKizTtpab+ilZH6g+9YFG2wQ11vZuYPaFdtsW33oWGUElVg2zoa\ne7jTlADXEefKm78sUObLXkQom/wo99/ZLGKTa7yk4UjwUVwKQxRo9oBjaW+1\nj7JzS0dPVYOZfL9ZPcaRzXoQ8SIPUoaZH9WQkRA3IeyeRM+A1nF497UgCP11\noLSj\r\n=lc8z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFg106H+6YVBjmf1YSUZlCFO7sg2DacAIsbhE0ibkJKEAiAHCdwQorI4JIo7B1lUv9UqTSmlmn0sJbrIvTw2NQWHig=="}],"size":8828,"noattachment":false,"key":"/denque/-/denque-2.0.1.tgz"},"_npmUser":{"name":"salakar","email":"mike.diarmid@gmail.com"},"directories":{},"maintainers":[{"name":"salakar","email":"mike.diarmid@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/denque_2.0.1_1630409910299_0.4344720072647983"},"_hasShrinkwrap":false,"readme":"<p align=\"center\">\n  <h1 align=\"center\">Denque</h1>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/denque\"><img src=\"https://img.shields.io/npm/dm/denque.svg?style=flat-square\" alt=\"NPM downloads\"></a>\n  <a href=\"https://www.npmjs.com/package/denque\"><img src=\"https://img.shields.io/npm/v/denque.svg?style=flat-square\" alt=\"NPM version\"></a>\n  <a href=\"https://github.com/invertase/denque/actions/workflows/testing.yam\"><img src=\"https://github.com/invertase/denque/actions/workflows/testing.yaml/badge.svg\" alt=\"Tests status\"></a>\n  <a href=\"https://codecov.io/gh/invertase/denque\"><img src=\"https://codecov.io/gh/invertase/denque/branch/master/graph/badge.svg?token=rn91iI4bSe\" alt=\"Coverage\"></a>\n  <a href=\"/LICENSE\"><img src=\"https://img.shields.io/npm/l/denque.svg?style=flat-square\" alt=\"License\"></a>\n  <a href=\"https://twitter.com/invertaseio\"><img src=\"https://img.shields.io/twitter/follow/invertaseio.svg?style=social&label=Follow\" alt=\"Follow on Twitter\"></a>\n</p>\n\nDenque is a well tested, extremely fast and lightweight [double-ended queue](http://en.wikipedia.org/wiki/Double-ended_queue)\nimplementation with zero dependencies and includes TypeScript types.\n\nDouble-ended queues can also be used as a:\n\n- [Stack](http://en.wikipedia.org/wiki/Stack_\\(abstract_data_type\\))\n- [Queue](http://en.wikipedia.org/wiki/Queue_\\(data_structure\\))\n\nThis implementation is currently the fastest available, even faster than `double-ended-queue`, see the [benchmarks](https://docs.page/invertase/denque/benchmarks).\n\nEvery queue operation is done at a constant `O(1)` - including random access from `.peekAt(index)`.\n\n**Works on all node versions >= v0.10**\n\n## Quick Start\n\nInstall the package:\n\n```bash\nnpm install denque\n```\n\nCreate and consume a queue:\n\n```js\nconst Denque = require(\"denque\");\n\nconst denque = new Denque([1,2,3,4]);\ndenque.shift(); // 1\ndenque.pop(); // 4\n```\n\n\nSee the [API reference documentation](https://docs.page/invertase/denque/api) for more examples.\n\n---\n\n## Who's using it?\n\n- [Kafka Node.js client](https://www.npmjs.com/package/kafka-node)\n- [MariaDB Node.js client](https://www.npmjs.com/package/mariadb)\n- [MongoDB Node.js client](https://www.npmjs.com/package/mongodb)\n- [MySQL Node.js client](https://www.npmjs.com/package/mysql2)\n- [Redis Node.js clients](https://www.npmjs.com/package/redis)\n\n... and [many more](https://www.npmjs.com/browse/depended/denque).\n\n\n---\n\n## License\n\n- See [LICENSE](/LICENSE)\n\n---\n\n<p align=\"center\">\n  <a href=\"https://invertase.io/?utm_source=readme&utm_medium=footer&utm_campaign=denque\">\n    <img width=\"75px\" src=\"https://static.invertase.io/assets/invertase/invertase-rounded-avatar.png\">\n  </a>\n  <p align=\"center\">\n    Built and maintained by <a href=\"https://invertase.io/?utm_source=readme&utm_medium=footer&utm_campaign=denque\">Invertase</a>.\n  </p>\n</p>\n","publish_time":1630409910469,"_cnpm_publish_time":1630409910469,"dist-tags":{"latest":"2.1.0"}}