{"_id":"datasette","_rev":"326102","name":"datasette","description":"datasette is a key-value container for arbitrary data.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"time":{"modified":"2021-06-07T02:44:43.000Z","created":"2016-03-10T15:40:59.779Z","1.0.1":"2018-02-12T16:14:59.815Z","1.0.0":"2018-02-09T09:16:14.854Z","0.3.4":"2017-06-15T09:57:49.236Z","0.3.3":"2017-02-23T10:41:10.814Z","0.3.2":"2016-03-16T19:25:20.046Z","0.3.1":"2016-03-16T19:22:23.435Z","0.3.0":"2016-03-10T15:40:59.779Z"},"users":{},"repository":{"type":"git","url":"git://github.com/thenativeweb/datasette.git"},"versions":{"1.0.1":{"name":"datasette","version":"1.0.1","description":"datasette is a key-value container for arbitrary data.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"},{"name":"Jan-Hendrik Grundhöfer","email":"jan-hendrik.grundhoefer@thenativeweb.io"}],"main":"dist/Datasette.js","dependencies":{"comparejs":"1.0.0","eventemitter2":"5.0.1","lodash":"4.17.5"},"devDependencies":{"assertthat":"1.0.0","cases":"1.0.0","roboter":"0.15.6","roboter-server":"0.15.6"},"repository":{"type":"git","url":"git://github.com/thenativeweb/datasette.git"},"keywords":["configuration","key-value"],"license":"MIT","gitHead":"fe80f20522f9fe5e56bc7e9d8ef8128870426c46","bugs":{"url":"https://github.com/thenativeweb/datasette/issues"},"homepage":"https://github.com/thenativeweb/datasette#readme","_id":"datasette@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"c8786bbd36be6606179e7a2525430b9dbd9395e8","size":4858,"noattachment":false,"key":"/datasette/-/datasette-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/datasette/download/datasette-1.0.1.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/datasette_1.0.1_1518452099092_0.5934957494554591"},"_hasShrinkwrap":false,"publish_time":1518452099815,"_cnpm_publish_time":1518452099815},"1.0.0":{"name":"datasette","version":"1.0.0","description":"datasette is a key-value container for arbitrary data.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"},{"name":"Jan-Hendrik Grundhöfer","email":"jan-hendrik.grundhoefer@thenativeweb.io"}],"main":"dist/Datasette.js","dependencies":{"comparejs":"1.0.0","eventemitter2":"5.0.1","lodash":"4.17.5"},"devDependencies":{"assertthat":"1.0.0","cases":"1.0.0","roboter":"0.15.6","roboter-server":"0.15.6"},"repository":{"type":"git","url":"git://github.com/thenativeweb/datasette.git"},"keywords":["configuration","key-value"],"license":"MIT","gitHead":"a36f8812de0b8fad68da67d8fab9ade4ae79e5d5","bugs":{"url":"https://github.com/thenativeweb/datasette/issues"},"homepage":"https://github.com/thenativeweb/datasette#readme","_id":"datasette@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"fb371375cd208f1171d2bc6e82b2741729894d10","size":4852,"noattachment":false,"key":"/datasette/-/datasette-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/datasette/download/datasette-1.0.0.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/datasette_1.0.0_1518167774137_0.781525488308435"},"_hasShrinkwrap":false,"publish_time":1518167774854,"_cnpm_publish_time":1518167774854},"0.3.4":{"name":"datasette","version":"0.3.4","description":"datasette is a key-value container for arbitrary data.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"dist/datasette.js","dependencies":{"comparejs":"0.1.6","eventemitter2":"4.1.0","lodash":"4.17.4"},"devDependencies":{"assertthat":"0.9.0","cases":"0.1.1","roboter":"0.15.2","roboter-server":"0.15.2"},"repository":{"type":"git","url":"git://github.com/thenativeweb/datasette.git"},"keywords":["configuration","key-value"],"license":"MIT","gitHead":"ed8d42cd314db279e4a86ee9671409a8a32c22d4","bugs":{"url":"https://github.com/thenativeweb/datasette/issues"},"homepage":"https://github.com/thenativeweb/datasette#readme","_id":"datasette@0.3.4","_npmVersion":"5.0.3","_nodeVersion":"6.10.0","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"437d61fd8a90e76cb085e161aa95e0cf5026768f","size":4368,"noattachment":false,"key":"/datasette/-/datasette-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/datasette/download/datasette-0.3.4.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/datasette-0.3.4.tgz_1497520668351_0.8234267940279096"},"directories":{},"publish_time":1497520669236,"_hasShrinkwrap":false,"_cnpm_publish_time":1497520669236},"0.3.3":{"name":"datasette","version":"0.3.3","description":"datasette is a key-value container for arbitrary data.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"dist/datasette.js","dependencies":{"comparejs":"0.1.6","eventemitter2":"3.0.0","lodash":"4.17.4"},"devDependencies":{"assertthat":"0.8.3","cases":"0.1.1","roboter":"0.14.6","roboter-server":"0.14.6"},"repository":{"type":"git","url":"git://github.com/thenativeweb/datasette.git"},"keywords":["configuration","key-value"],"license":"MIT","gitHead":"0f7abe3b28e9088d8fb1b05cd1017674d61d8e71","bugs":{"url":"https://github.com/thenativeweb/datasette/issues"},"homepage":"https://github.com/thenativeweb/datasette#readme","_id":"datasette@0.3.3","scripts":{},"_shasum":"fbc194f4baee724031b3d9a23b589553f813279c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"fbc194f4baee724031b3d9a23b589553f813279c","size":4340,"noattachment":false,"key":"/datasette/-/datasette-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/datasette/download/datasette-0.3.3.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/datasette-0.3.3.tgz_1487846468735_0.3977666322607547"},"directories":{},"publish_time":1487846470814,"_cnpm_publish_time":1487846470814,"_hasShrinkwrap":false},"0.3.2":{"name":"datasette","version":"0.3.2","description":"datasette is a key-value container for arbitrary data.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/datasette.js","dependencies":{"comparejs":"0.1.2","eventemitter2":"1.0.0","lodash":"4.6.1"},"devDependencies":{"assertthat":"0.6.0","cases":"0.1.1","gulp":"3.9.1","roboter":"0.4.8"},"repository":{"type":"git","url":"git://github.com/thenativeweb/datasette.git"},"browserify":{"transform":[["babelify",{"plugins":["transform-es2015-block-scoping"],"presets":["es2015"]}]]},"keywords":["configuration","key-value"],"license":"MIT","gitHead":"83b8f4c01d6b1c389241e9ba7693a87febff2bcc","bugs":{"url":"https://github.com/thenativeweb/datasette/issues"},"homepage":"https://github.com/thenativeweb/datasette#readme","_id":"datasette@0.3.2","scripts":{},"_shasum":"73b79d75557c285c1c6578963752918c627197d3","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"73b79d75557c285c1c6578963752918c627197d3","size":3721,"noattachment":false,"key":"/datasette/-/datasette-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/datasette/download/datasette-0.3.2.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/datasette-0.3.2.tgz_1458156317828_0.5708527686074376"},"directories":{},"publish_time":1458156320046,"_cnpm_publish_time":1458156320046,"_hasShrinkwrap":false},"0.3.1":{"name":"datasette","version":"0.3.1","description":"datasette is a key-value container for arbitrary data.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/datasette.js","dependencies":{"comparejs":"0.1.2","eventemitter2":"1.0.0","lodash":"4.6.1"},"devDependencies":{"assertthat":"0.6.0","cases":"0.1.1","gulp":"3.9.1","roboter":"0.4.8"},"repository":{"type":"git","url":"git://github.com/thenativeweb/datasette.git"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"keywords":["configuration","key-value"],"license":"MIT","gitHead":"f73a130ecb1e81e6990789c4e4ae81b8b8eeb8cd","bugs":{"url":"https://github.com/thenativeweb/datasette/issues"},"homepage":"https://github.com/thenativeweb/datasette#readme","_id":"datasette@0.3.1","scripts":{},"_shasum":"544411fd5a1d737ef60c8ff0a0ca8108242421c4","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"544411fd5a1d737ef60c8ff0a0ca8108242421c4","size":3697,"noattachment":false,"key":"/datasette/-/datasette-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/datasette/download/datasette-0.3.1.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/datasette-0.3.1.tgz_1458156141163_0.06123925605788827"},"directories":{},"publish_time":1458156143435,"_cnpm_publish_time":1458156143435,"_hasShrinkwrap":false},"0.3.0":{"name":"datasette","version":"0.3.0","description":"datasette is a key-value container for arbitrary data.","contributors":[{"name":"Golo Roden","email":"golo.roden@thenativeweb.io"},{"name":"Matthias Wagler","email":"matthias.wagler@thenativeweb.io"}],"main":"lib/datasette.js","dependencies":{"comparejs":"0.1.2","eventemitter2":"1.0.0","lodash":"4.6.1"},"devDependencies":{"assertthat":"0.6.0","cases":"0.1.1","gulp":"3.9.1","roboter":"0.4.8"},"repository":{"type":"git","url":"git://github.com/thenativeweb/datasette.git"},"keywords":["configuration","key-value"],"license":"MIT","gitHead":"a57c70db44a7be0c8a55f99aab4cded15b86cc38","bugs":{"url":"https://github.com/thenativeweb/datasette/issues"},"homepage":"https://github.com/thenativeweb/datasette#readme","_id":"datasette@0.3.0","scripts":{},"_shasum":"69cf2089a971d47c54d38a6c63bebaa3832c3680","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"goloroden","email":"webmaster@goloroden.de"},"dist":{"shasum":"69cf2089a971d47c54d38a6c63bebaa3832c3680","size":3633,"noattachment":false,"key":"/datasette/-/datasette-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/datasette/download/datasette-0.3.0.tgz"},"maintainers":[{"name":"goloroden","email":"webmaster@goloroden.de"},{"name":"nhummel","email":"hummel@marvelous.systems"},{"name":"thenativeweb-admin","email":"hello@thenativeweb.io"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/datasette-0.3.0.tgz_1457624457489_0.10403170972131193"},"directories":{},"publish_time":1457624459779,"_cnpm_publish_time":1457624459779,"_hasShrinkwrap":false}},"readme":"# datasette\n\ndatasette is a key-value container for arbitrary data.\n\n## Installation\n\n```shell\n$ npm install datasette\n```\n\n## Quick start\n\nThe first thing you need to do is to integrate datasette into your application. For that add a reference to the `datasette` module:\n\n```javascript\nconst Datasette = require('datasette');\n```\n\nNext, you can create a new data container:\n\n```javascript\nconst datasette = new Datasette();\n```\n\n### Setting data\n\nTo set data, call the data container's `set` function and specify the `key` and the `value` you want to store:\n\n```javascript\ndatasette.set('foo', { bar: 'baz' });\n```\n\nTo set multiple keys and values at once, you can also hand over an object that contains the data:\n\n```javascript\ndatasette.set({\n  foo: 23,\n  bar: 42\n});\n```\n\nThis is equivalent to calling `set` two times with separate key value pairs.\n\n### Getting data\n\nTo get data, call the data container's `get` function and specify the `key` you would like to retrieve:\n\n```javascript\nconst value = datasette.get('foo');\n```\n\n*Note: Each time you call `get`, you will get a cloned result to avoid conflicting state changes on a shared reference.*\n\n### Dealing with events\n\nEvery time a value is created, changed or deleted, the data container will emit a `changed` event. Use the `on` or `once` functions to subscribe to this event:\n\n```javascript\ndatasette.on('changed', (key, value) => {\n  // ...\n});\n```\n\nIf you are only interested in `changed` events for a specific `key`, subscribe to the `changed::*` event instead:\n\n```javascript\ndatasette.on('changed::foo', value => {\n  // ...\n});\n```\n\n*Note: If you set the same key value pair two times, the data container will not emit an event on the second `set` call.*\n\nTo unsubscribe from event notifications, use the `off` function.\n\n### Suppressing events\n\nIf you don't want a `set` call to result in an emitted event, you can specify an `options` object and set its `silent` property to `true`:\n\n```javascript\ndatasette.set('foo', 'bar', { silent: true });\n```\n\n## Running the build\n\nTo build this module use [roboter](https://www.npmjs.com/package/roboter).\n\n```shell\n$ bot\n```\n\n## License\n\nThe MIT License (MIT)\nCopyright (c) 2013-2018 the native web.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/thenativeweb/datasette#readme","bugs":{"url":"https://github.com/thenativeweb/datasette/issues"},"license":"MIT"}