{"_id":"cp-data","_rev":"12-86fd7c6eb3d9522ab3170d03a8ca952f","name":"cp-data","description":"cp-data is a JavaScript library for some common data structures","dist-tags":{"latest":"1.1.3"},"versions":{"1.1.0":{"name":"cp-data","version":"1.1.0","description":"cp-data is a JavaScript library for some common data structures","main":"index.js","keywords":["set","priority queue","data structure"],"scripts":{},"devDependencies":{"benchmark":"~1.0.0","blanket":"1.x.x","browserify":"~2.33.1","chai":"1.7.x","grunt":"~0.4.1","grunt-browserify":"~1.2.8","grunt-contrib-copy":"~0.4.1","grunt-contrib-jshint":"~0.6.4","grunt-contrib-uglify":"~0.2.4","grunt-contrib-watch":"~0.5.3","grunt-mocha-cov":"0.0.7","mocha":"1.12.x","semver":"2.1.x","uglify-js":"1.2.3"},"author":{"name":"Chris Pettitt","email":"chris@samsarin.com"},"repository":{"type":"git","url":"https://github.com/cpettitt/cp-data.git"},"license":"MIT","bugs":{"url":"https://github.com/cpettitt/cp-data/issues"},"_id":"cp-data@1.1.0","dist":{"shasum":"db9bc65b518bf8baa4cc948606ac180ab1ba0b1a","tarball":"https://registry.npmjs.org/cp-data/-/cp-data-1.1.0.tgz","integrity":"sha512-EI88CPW74/uPqPzHoMHnyK0ogpzupxYEbefEKsxZt1/zoTM/0SatwBAeBFVCu/s6ePnKXrMmSeQwZwjK8I5bsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTUeWcgYDFSZl49q41sjfEpAxvluXrwLhuB+iv5zhofgIhAI8/l9OBM7apODjvUr00lVQH4cGZjgyUHKLuWspqwGhl"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"cpettitt","email":"chris@samsarin.com"},"maintainers":[{"name":"cpettitt","email":"chris@samsarin.com"}]},"1.1.1":{"name":"cp-data","version":"1.1.1","description":"cp-data is a JavaScript library for some common data structures","main":"index.js","keywords":["set","priority queue","data structure"],"config":{"blanket":{"pattern":"lib","data-cover-never":["node_modules","test"]}},"devDependencies":{"benchmark":"~1.0.0","blanket":"1.x.x","browserify":"~2.35.1","chai":"1.7.x","grunt":"~0.4.1","grunt-browserify":"~1.2.8","grunt-contrib-copy":"~0.4.1","grunt-contrib-jshint":"~0.6.4","grunt-contrib-uglify":"~0.2.4","grunt-contrib-watch":"~0.5.3","grunt-mocha-cov":"0.0.7","mocha":"1.12.x","semver":"2.1.x","uglify-js":"1.2.3"},"author":{"name":"Chris Pettitt","email":"chris@samsarin.com"},"repository":{"type":"git","url":"https://github.com/cpettitt/cp-data.git"},"license":"MIT","_id":"cp-data@1.1.1","dist":{"shasum":"b0e9121fbd36fbab134e3faa9623db807995e5bb","tarball":"https://registry.npmjs.org/cp-data/-/cp-data-1.1.1.tgz","integrity":"sha512-YTeSpU39sVpZjBJ8suVRU9d+ERoYHOIjEi8Cpr5IgPxB7+QvI1GkDl00pf3G0wOTgSE0OqeCU08ntDqMpMN9tw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBnYpWJYXQRdIw2PCpDeDO8MU0DrihHVpqzz+Qz5oz7aAiBaEvD9ZS/dDEvC+ZDedjlnSP0lHvka92slBKlqHkkDLg=="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"cpettitt","email":"cpettitt@gmail.com"},"maintainers":[{"name":"cpettitt","email":"chris@samsarin.com"}]},"1.1.2":{"name":"cp-data","version":"1.1.2","description":"cp-data is a JavaScript library for some common data structures","main":"index.js","keywords":["set","priority queue","data structure"],"devDependencies":{"benchmark":"~1.0.0","browserify":"~2.33.1","chai":"1.7.x","jshint":"2.1.x","istanbul":"~0.1.44","mocha":"1.12.x","semver":"2.1.x","uglify-js":"1.2.3"},"author":{"name":"Chris Pettitt","email":"chris@samsarin.com"},"repository":{"type":"git","url":"https://github.com/cpettitt/cp-data.git"},"license":"MIT","bugs":{"url":"https://github.com/cpettitt/cp-data/issues"},"homepage":"https://github.com/cpettitt/cp-data","_id":"cp-data@1.1.2","dist":{"shasum":"6a83a11c7dc1053a88f5cd7c3dd7418eae150a8c","tarball":"https://registry.npmjs.org/cp-data/-/cp-data-1.1.2.tgz","integrity":"sha512-FbPJ7HW10gjILPfYKL4YegnuOs9eX6UhVk0jU2Y/Hj1nqQ1NAkXGsczDGCCclQ2pH2Z0nbURfh7xsgGI9kyNRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQColbEzC/zBdVAy8xXTfb6pXRvhmfwrglvgIGlwAM4zvAIgB1m4Z/rvEq/pY7bNFJgBCitaQnyJ66h2+lg1FW2SJFE="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"cpettitt","email":"cpettitt@gmail.com"},"maintainers":[{"name":"cpettitt","email":"chris@samsarin.com"}]},"1.1.3":{"name":"cp-data","version":"1.1.3","description":"cp-data is a JavaScript library for some common data structures","main":"index.js","keywords":["set","priority queue","data structure"],"devDependencies":{"benchmark":"~1.0.0","browserify":"~2.33.1","chai":"1.7.x","jshint":"2.1.x","istanbul":"~0.1.44","mocha":"1.12.x","semver":"2.1.x","uglify-js":"1.2.3"},"author":{"name":"Chris Pettitt","email":"chris@samsarin.com"},"repository":{"type":"git","url":"https://github.com/cpettitt/cp-data.git"},"license":"MIT","bugs":{"url":"https://github.com/cpettitt/cp-data/issues"},"homepage":"https://github.com/cpettitt/cp-data","_id":"cp-data@1.1.3","dist":{"shasum":"b705f637992db68f37e2d48de525b1d66dd5b372","tarball":"https://registry.npmjs.org/cp-data/-/cp-data-1.1.3.tgz","integrity":"sha512-PGfotTqIas7eTCpMjvSxUVUsIFkTc6BCmy92rqfMF2FC3NreWy4F7J8bfSKCZ7kUFDWO6nHEUCxjoRyzDjIgSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGOBaZPD8xGNtwoO2o5HXqhAK7KdZI4vwoV+J+NIlNLuAiB7CYAve4E+7RbY/EOn4Kv4ghdsQ5kCX2wI3dZM2WlRjg=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"cpettitt","email":"cpettitt@gmail.com"},"maintainers":[{"name":"cpettitt","email":"chris@samsarin.com"}]}},"readme":"# cp-data\n\ncp-data is a JavaScript library for some common data structures. Currently this\nincludes a fast Set implementation and a PriorityQueue.\n\n[![Build Status](https://secure.travis-ci.org/cpettitt/cp-data.png)](http://travis-ci.org/cpettitt/cp-data)\n\n# Getting cp-data\n\n## NPM Install\n\nBefore installing this library you need to install the [npm package manager].\n\nTo get cp-data from npm, use:\n\n    $ npm install cp-data\n\n## Browser Scripts\n\nYou can get the latest browser-ready scripts:\n\n* [cp-data.js](http://cpettitt.github.io/project/cp-data/latest/cp-data.js)\n* [cp-data.min.js](http://cpettitt.github.io/project/cp-data/latest/cp-data.min.js)\n\n## Build From Source\n\nBefore building this library you need to install the [npm package manager].\n\nCheck out this project and run this command from the root of the project:\n\n    $ make\n\nThis will generate `cp-data.js` and `cp-data.min.js` in the `out/dist` directory\nof the project.\n\n# Set Example\n\n```js\nvar Set = require('cp-data').Set;\n\nvar s1 = new Set();\n\ns1.has(1);\n// => false\n\ns1.add(1);\n// => true\n\ns1.size();\n// => 1\n\ns1.has(1);\n// => true\n\n// Addind a key that is already in the set does not change the set. The\n// function returns `false` to indicate nothing changed.\ns1.add(1);\n// => false\n\ns1.size();\n// => 1\n\ns1.add(2);\ns1.size();\n// => 2\n\n// We can construct a set from an array\nvar s2 = new Set([2, 3, 4]);\n\ns2.keys();\n// => [2, 3, 4]\n\n// Intersection:\nSet.intersect([s1, s2]).keys();\n// => [2]\n\n// Union:\nSet.union([s1, s2]).keys();\n// => [1, 2, 3, 4]\n\n// We can also do set intersection / union with arrays:\nSet.intersect([[1, 2, 3], [2, 3, 4]]).keys();\n// => [2, 3]\n\n// We can do set intersection / union with more that 2 sets:\nSet.union([s1, s2, ['a', 'b', 'c']]).keys();\n// => [1, 2, 3, 4, 'a', 'b', 'c']\n\n// Lastly, sets preserve the type of the key supplied. Compare the following 2\n// results:\nnew Set([1]).keys();\n// => [1]\nnew Set(['1']).keys();\n// => ['1']\n```\n\n# License\n\ncp-data is licensed under the terms of the MIT License. See the LICENSE file\nfor details.\n\n[npm package manager]: http://npmjs.org/\n","maintainers":[{"email":"cpettitt@gmail.com","name":"cpettitt"}],"time":{"modified":"2022-06-14T02:16:17.670Z","created":"2013-10-15T14:14:07.301Z","1.1.0":"2013-10-15T14:14:08.996Z","1.1.1":"2013-12-20T19:37:57.921Z","1.1.2":"2014-01-10T01:44:41.451Z","1.1.3":"2014-01-31T04:03:51.545Z"},"author":{"name":"Chris Pettitt","email":"chris@samsarin.com"},"repository":{"type":"git","url":"https://github.com/cpettitt/cp-data.git"},"readmeFilename":"README.md","homepage":"https://github.com/cpettitt/cp-data","keywords":["set","priority queue","data structure"],"bugs":{"url":"https://github.com/cpettitt/cp-data/issues"},"license":"MIT"}