{"_id":"b-heap","_rev":"3-c04f9dc37b081711a29fdc16ccc0f1d6","name":"b-heap","description":"simple implementation of binary heap in js for fun","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"b-heap","version":"0.0.1","description":"simple implementation of binary heap in js for fun","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/lxynox/BinaryHeap.git"},"keywords":["binary heap"],"author":{"name":"lxynox"},"license":"MIT","bugs":{"url":"https://github.com/lxynox/BinaryHeap/issues"},"homepage":"https://github.com/lxynox/BinaryHeap#readme","dependencies":{},"devDependencies":{"mocha":"^3.2.0"},"gitHead":"ad3c4aca2af0368fce828da9ae9a304b3db5a9ab","_id":"b-heap@0.0.1","_shasum":"6724fb539d466b634a0bfaf40458188a169ecc6f","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.6.0","_npmUser":{"name":"lxynox","email":"lxynox@gmail.com"},"dist":{"shasum":"6724fb539d466b634a0bfaf40458188a169ecc6f","tarball":"https://registry.npmjs.org/b-heap/-/b-heap-0.0.1.tgz","integrity":"sha512-k/qDI30uXielDTUmPBzZztmMydUQT/mIsz/TJulCb753s8py4eWH6JY0Hakzm/Fv7bZdwiyRd9X9oIrG33U1EQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBqVWXUL3mSp5S507m1l9AfLJIzz7NRih1ovVv3DGC7RAiBMH5P4qFTO44svee+kY2TVkCN0DSpaOmj2pknKvJbcNw=="}]},"maintainers":[{"name":"lxynox","email":"lxynox@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/b-heap-0.0.1.tgz_1490642979620_0.10738134663552046"}},"0.0.2":{"name":"b-heap","version":"0.0.2","description":"simple implementation of binary heap in js for fun","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/lxynox/BinaryHeap.git"},"keywords":["binary heap"],"author":{"name":"lxynox"},"license":"MIT","bugs":{"url":"https://github.com/lxynox/BinaryHeap/issues"},"homepage":"https://github.com/lxynox/BinaryHeap#readme","dependencies":{},"devDependencies":{"mocha":"^3.2.0"},"gitHead":"a953319ece4ddcc5e6fe8d47727df8baa6c256a3","_id":"b-heap@0.0.2","_shasum":"39883c250bf568bf2f77d16d89b54440e67bcee1","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.6.0","_npmUser":{"name":"lxynox","email":"lxynox@gmail.com"},"dist":{"shasum":"39883c250bf568bf2f77d16d89b54440e67bcee1","tarball":"https://registry.npmjs.org/b-heap/-/b-heap-0.0.2.tgz","integrity":"sha512-exTuwA07d4k/INtAd8h/GLQGbs18qac8rj53ghxl1U1EoXuffs6zvYcj7NHr2Vr5ajxlJw9fBJHvAWcDYSk3xQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKJl/QPJ3hmJG2Mek3CAdnfpNfXT+aHwWfj3VzLL8WvQIgCl1U/BZvBdU71uH+j1M1TxewxV+dPmvWsVGt7e5rJxY="}]},"maintainers":[{"name":"lxynox","email":"lxynox@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/b-heap-0.0.2.tgz_1490643239271_0.051749444333836436"}}},"readme":"# BinaryHeap\nJS simple binary heap implementation\n\n## Usage\n* Client(browser) side (access as globals `window.BinayHeap`)\n\n  inline hot-link using `<script>` tag:\n\n  `<script type='text/javascript' src='./BinaryHeap.js'></script>`\n\n* Server side (import as *ES6*/*CommonJS*/*AMD* module)\n\n  install via npm: `npm install --save b-heap`\n\n  or via yarn: `yarn add b-heap`\n\n---\n\n## API\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n-   [isEmpty](#isempty)\n-   [size](#size)\n-   [peek](#peek)\n-   [push](#push)\n-   [pop](#pop)\n-   [contains](#contains)\n-   [remove](#remove)\n\n## isEmpty\n\n[check if the heap is empty]\n\nReturns **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** [is empty or not]\n\n## size\n\n[count the number of elements in current heap]\n\nReturns **\\[[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** [size of the heap]\n\n## peek\n\n[top element of current heap]\n\nReturns **\\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** [top element]\n\n## push\n\n[push element into heap]\n\n**Parameters**\n\n-   `e` **\\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** [element]\n\n## pop\n\n[remove top element from heap]\n\nReturns **\\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** [removed element]\n\n## contains\n\n[check if contains target element]\n\n**Parameters**\n\n-   `e` **\\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** [target element]\n\nReturns **\\[[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)]** [contains or not]\n\n## remove\n\n[remove target element from heap]\n\n**Parameters**\n\n-   `e` **\\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)]** [target element]\n\nReturns **\\[[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)]** [removed or not]\n","maintainers":[{"name":"lxynox","email":"lxynox@gmail.com"}],"time":{"modified":"2022-06-13T03:59:05.385Z","created":"2017-03-27T19:29:40.290Z","0.0.1":"2017-03-27T19:29:40.290Z","0.0.2":"2017-03-27T19:33:59.945Z"},"homepage":"https://github.com/lxynox/BinaryHeap#readme","keywords":["binary heap"],"repository":{"type":"git","url":"git+https://github.com/lxynox/BinaryHeap.git"},"author":{"name":"lxynox"},"bugs":{"url":"https://github.com/lxynox/BinaryHeap/issues"},"license":"MIT","readmeFilename":"README.md"}