{"_id":"queue-priority","_rev":"4-eae28b93c485fd437667c98330935d98","name":"queue-priority","description":"Simple priority Queue implementation.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"author":{"name":"Augusto Pascutti","email":"augusto.hp@gmail.com","url":"http://github.com/augustohp"},"name":"queue-priority","description":"Simple priority Queue implementation.","version":"1.0.0","keyworkds":["priority queue","queue","priority"],"homepage":"https://github.com/augustohp/Priority-Queue-NodeJS","repository":{"type":"git","url":"https://github.com/augustohp/Priority-Queue-NodeJS.git"},"main":"src/PriorityQueue.js","scripts":{"test":"node tests/PriorityQueue.js"},"engines":{"node":"~0.4"},"dependencies":{},"devDependencies":{},"bugs":{"url":"https://github.com/augustohp/Priority-Queue-NodeJS/issues"},"_id":"queue-priority@1.0.0","dist":{"shasum":"cbe547eff7e7d7a952106e2f0540525e37f84edc","tarball":"https://registry.npmjs.org/queue-priority/-/queue-priority-1.0.0.tgz","integrity":"sha512-Gj7Sn7IrbVrwhdt4lW27JIauG0E6Kuo+s8OG3gfGwcu5vzwu+d95J0g2QCxPkGvn7eqxshwjNy8fUjclvK4+NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDI3h6MgRvR864OQgWo2MGjJBLj3LaKMuHgXZ6JaJR/oAiAUnAPPufwcZ9TTtmgaWLC8L4q3xn5UgWHH4l4sxafKtA=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"augustohp","email":"augusto.hp@gmail.com"},"maintainers":[{"name":"augustohp","email":"augusto.hp@gmail.com"}]}},"readme":"# Priority Queue (NodeJS) [![Build Status](https://travis-ci.org/augustohp/Priority-Queue-NodeJS.svg)](https://travis-ci.org/augustohp/Priority-Queue-NodeJS)\n\nIt's a simple implementation of a PriorityQueue for NodeJS. As the code is JavaScript it could be used on the browser without any trouble.\n\nThe basic usage is to push() elements and give them a priority to be used into the queue. You can also set a custom compare() function and a limit of elements to be held into the queue.\n\nMore examples can be found into the _tests_ folder.\n\n```js\nqueue = new PriorityQueue();\nqueue.push(\"Most important note\", 99);\nqueue.push(\"Important note\", 50);\nqueue.push(\"Silly notice\", 1);\n\nqueue.top(); // Most important note\nqueue.top(); // Important note\nqueue.top(); // Silly notice\nqueue.top(); // undefined\n```\n","maintainers":[{"name":"augustohp","email":"augusto.hp@gmail.com"}],"time":{"modified":"2022-06-25T06:53:23.440Z","created":"2014-09-29T00:27:35.545Z","1.0.0":"2014-09-29T00:27:35.545Z"},"homepage":"https://github.com/augustohp/Priority-Queue-NodeJS","repository":{"type":"git","url":"https://github.com/augustohp/Priority-Queue-NodeJS.git"},"author":{"name":"Augusto Pascutti","email":"augusto.hp@gmail.com","url":"http://github.com/augustohp"},"bugs":{"url":"https://github.com/augustohp/Priority-Queue-NodeJS/issues"},"readmeFilename":"README.md"}