{"name":"semver-store","version":"0.2.0","description":"An extremely fast semver based store","main":"index.js","scripts":{"test":"standard && tap test.js"},"repository":{"type":"git","url":"git+https://github.com/delvedor/semver-store.git"},"keywords":["semver","store","tree"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","bugs":{"url":"https://github.com/delvedor/semver-store/issues"},"homepage":"https://github.com/delvedor/semver-store#readme","devDependencies":{"benchmark":"^2.1.4","standard":"^11.0.1","tap":"^12.0.1"},"gitHead":"ddd9b60126d15fe3fb7a24f557013ac0218f1a16","_id":"semver-store@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"delvedor","email":"tommydelved@gmail.com"},"dist":{"integrity":"sha512-Ip9LoEMj6TanHes2FmJGwLrGEtD3P4sLPSoqBerdRx8lH0jEwYNZcoyB5N4ve6DaUPl3YkZjNdnTNQLdt2D4Qg==","shasum":"2c478b74f1a5d373d2d1f830c9872b06a16307ca","tarball":"http://registry-npm.ywwl.com/semver-store/download/semver-store-0.2.0.tgz","fileCount":7,"unpackedSize":16954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHBLuCRA9TVsSAnZWagAAXxUP/jzNk6CXXIwUcm3OLAWd\nw6fUm3FQ0BIKNjgk6TBOyQzxWCfkniSO1xOunv7dYA9MZqfYjb8RpJvfhx57\nEff5IX5hSGv2Qk9PttFgFvMl9qJo/xbUM9Wed6WUqP8mFnaXFheN1m0DC6O0\ns0lf0eVFWs9ZYxsffS92gCqXS/EKW5cjcRz7MBbfI0Wb+nZv4j2760IMLJcy\nq0WbGnD4NzVj9P0DQvh+2BJpTpgk3YXo/nswWvlFJl7lkMMR47B6FhNQNsnq\n3qS4AxCr37gb2rwm6s978Cacx9iQ977YDMiJm+mOVCDIxDGiEVI79I5WReYW\nh75lzMH276sfLAF1Dp/ymahPqg0EzV0MPBoMokldW8CDaozaV+g4dz/hrvWn\n+wRZJSQMprZNUf/lkEIYYPSeEVQ3pXLDuF+2H1PoeXR18Mn15OzAMtXiFLV6\njcB05C5ZC25LTvt0TpvKDNXljr6vu0hHKp4DvEyp8YLLEBLl0jQt5HMV3whd\nFTbv3k2fN2mdjYSC1rw0b4xb5f2gxRkaQjXbh8SllYjz9FjhdYVilx8LBD2B\n5y+/en1JeIVAfB9w7XLO0KQQ6SH/jOZUWwlzgeQJUjc2WkPb+jAqUO14tgI8\nsbZZcO8vI/8birfZZZwDKpHAp0j/ySGcbobnNzFZVFZ3rxhlLdZ2CUBL8d5q\nLpt5\r\n=QU6X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAHELCT0OIYSM2EnnxeCT+yrxhvcQz58rgxJQkLtsediAiAwV57cX+y7M6IARkP+tNwRpVKIbKoMC4AAKCpiFVeSIA=="}],"size":3821,"noattachment":false,"key":"/semver-store/-/semver-store-0.2.0.tgz"},"maintainers":[{"name":"delvedor","email":"tommydelved@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/semver-store_0.2.0_1528566510309_0.3650151059920719"},"_hasShrinkwrap":false,"readme":"# semver-store\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)  [![Build Status](https://travis-ci.org/delvedor/semver-store.svg?branch=master)](https://travis-ci.org/delvedor/semver-store)\n\nAn extremely fast semver based store.\n\n## Install\n```\nnpm i semver-store\n```\n## Usage\nUse it is very easy, you just need to require the library and start adding values.\n```js\nconst store = require('semver-store')()\n\nstore.set('1.2.0', { value: 42 })\n\nconsole.log(\n  store.get('1.2.0') // { value: 42 }\n)\n```\n\n## API\n#### `set(version, store)`\nAdd a document to the store with the specified version.<br/>\nThe version **must** be conform with the [semver](http://semver.org/) specification.\n\n#### `get(version)`\nGet a document from the store with the specified version.<br/>\nThe version string could be a full version string or specify a range, such as `1.x`, in which case the highest version compatible will be returned. Specify `*` to get the highest version available.\n\n#### `del(version)`\nDeletes a document from the store with the specified version.<br/>\nThe version string could be a full version string or specify a range, such as `1.x`, in which case all the compatible values will be deleted.\n\n#### `empty()`\nEmpties the store.\n\n### Why is fast?\n  Internally uses a [prefix tree](https://en.wikipedia.org/wiki/Trie), which allows the search to be extremely performant.\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","publish_time":1528566510413,"_cnpm_publish_time":1528566510413,"dist-tags":{"latest":"0.3.0"}}