{"_id":"mobx-keys-store","_rev":"36-9318275451f9054521b5145ac31f1115","name":"mobx-keys-store","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"mobx-keys-store","version":"1.0.0","keywords":["mobx","keys","store","key/value","observable"],"author":{"name":"Infinum","email":"javascript.team@infinum.co"},"license":"MIT","_id":"mobx-keys-store@1.0.0","maintainers":[{"name":"darkokukovec","email":"darko@kukovec.eu"}],"contributors":[{"name":"Darko Kukovec","email":"darko@infinum.co"}],"homepage":"https://github.com/infinum/mobx-keys-store#readme","bugs":{"url":"https://github.com/infinum/mobx-keys-store/issues"},"dist":{"shasum":"dbc77761be00a6a119c090ec0af99737f33e5845","tarball":"https://registry.npmjs.org/mobx-keys-store/-/mobx-keys-store-1.0.0.tgz","integrity":"sha512-akN0MPhKxVwhZ+kTq6+LyzHicyTjuAGRzUAVBU9X0OsJFjzExB+HzHpA2GR+zT8L+Irj1yCcYJmAxqT7VhY2LQ==","signatures":[{"sig":"MEUCIFJPBntDQlJxPzlTq/DwvjnLMB0v/02QZMLuPX6O9qH7AiEA5B5b5tLS8P8WYak4ZibjZGj+acErqRNBWKHNh8BHYCI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/KeysStore.js","_from":".","_shasum":"dbc77761be00a6a119c090ec0af99737f33e5845","gitHead":"1c05fe41091e79c5672efeb9b9aea66d78546c13","scripts":{"lint":"eslint src/* tests/* webpack.*","test":"npm run build:test && npm run run:test","build":"NODE_ENV=production webpack","run:test":"mocha --require source-map-support/register dist/test.js","build:add":"npm run build && git add dist/KeysStore.js","precommit":"npm run lint && npm test && npm run build:add","build:test":"webpack --config webpack.test.js"},"_npmUser":{"name":"darkokukovec","email":"darko@kukovec.eu"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/infinum/mobx-keys-store.git","type":"git"},"_npmVersion":"3.10.3","description":"Keys store for MobX","directories":{},"_nodeVersion":"6.7.0","dependencies":{"mobx":"^2.6.0"},"devDependencies":{"chai":"^3.5.0","husky":"^0.11.9","mocha":"^3.1.2","eslint":"^3.8.0","webpack":"^1.13.2","babel-core":"^6.17.0","babel-eslint":"^7.0.0","babel-loader":"^6.2.5","source-map-support":"^0.4.3","babel-preset-es2015":"^6.16.0","babel-plugin-transform-decorators-legacy":"^1.3.4"},"_npmOperationalInternal":{"tmp":"tmp/mobx-keys-store-1.0.0.tgz_1476622508011_0.026185096707195044","host":"packages-12-west.internal.npmjs.com"}},"1.0.1":{"name":"mobx-keys-store","version":"1.0.1","keywords":["mobx","keys","store","key/value","observable"],"author":{"name":"Infinum","email":"javascript.team@infinum.co"},"license":"MIT","_id":"mobx-keys-store@1.0.1","maintainers":[{"name":"darkokukovec","email":"darko@kukovec.eu"},{"name":"infinumco","email":"accounts.npm@infinum.co"}],"contributors":[{"name":"Darko Kukovec","email":"darko@infinum.co"}],"homepage":"https://github.com/infinum/mobx-keys-store#readme","bugs":{"url":"https://github.com/infinum/mobx-keys-store/issues"},"dist":{"shasum":"cb312477f200aaed2f384d6d39111370d5a20e8f","tarball":"https://registry.npmjs.org/mobx-keys-store/-/mobx-keys-store-1.0.1.tgz","integrity":"sha512-BBAoqbsMxOkRldd96aCtXLn0NQITLMPAwWSeEo4RxamyWMZOnAqJ/A9j77oPdVuY3aJ3ule3x9nTimyGu2pNMQ==","signatures":[{"sig":"MEUCIQDAutBTTKpfuWdtJX1BFlNmyOKutAArJMuSY60PNImVtQIgBLDmA09AzAXE6pLSIWUPU4EZCiLYzIWf7tAABe4Bwso=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/KeysStore.js","_from":".","_shasum":"cb312477f200aaed2f384d6d39111370d5a20e8f","gitHead":"74650018bfd8b87b6359fb502781f0ca9413a1d0","scripts":{"lint":"eslint src/* tests/* webpack.*","test":"npm run build:test && npm run run:test","build":"NODE_ENV=production webpack","run:test":"mocha --require source-map-support/register dist/test.js","build:add":"npm run build && git add dist/KeysStore.js","precommit":"npm run lint && npm test && npm run build:add","build:test":"webpack --config webpack.test.js"},"_npmUser":{"name":"darkokukovec","email":"darko@kukovec.eu"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/infinum/mobx-keys-store.git","type":"git"},"_npmVersion":"4.1.2","description":"Keys store for MobX","directories":{},"_nodeVersion":"7.5.0","dependencies":{"mobx":"^3.0.1"},"devDependencies":{"chai":"^3.5.0","husky":"^0.13.0","mocha":"^3.1.2","eslint":"^3.8.0","webpack":"^2.2.1","babel-core":"^6.17.0","babel-eslint":"^7.0.0","babel-loader":"^6.2.5","source-map-support":"^0.4.3","babel-preset-es2015":"^6.16.0","babel-plugin-transform-decorators-legacy":"^1.3.4"},"_npmOperationalInternal":{"tmp":"tmp/mobx-keys-store-1.0.1.tgz_1487441035287_0.956472204066813","host":"packages-18-east.internal.npmjs.com"}},"1.1.0":{"name":"mobx-keys-store","version":"1.1.0","keywords":["mobx","keys","store","observable"],"author":{"name":"Infinum","email":"javascript.team@infinum.co"},"license":"MIT","_id":"mobx-keys-store@1.1.0","maintainers":[{"name":"darkokukovec","email":"darko@kukovec.eu"},{"name":"infinumco","email":"accounts.npm@infinum.co"}],"contributors":[{"name":"Darko Kukovec","email":"darko@infinum.co"}],"homepage":"https://github.com/infinum/mobx-keys-store#readme","bugs":{"url":"https://github.com/infinum/mobx-keys-store/issues"},"nyc":{"cache":false,"exclude":["src/interfaces/*","test/*"],"require":["ts-node/register"],"reporter":["lcov","text","text-summary"],"extension":[".ts"],"sourceMap":true,"instrument":true},"dist":{"shasum":"aaf8294e818e68dba3ac7c7ecb07f4e8f4b39fb2","tarball":"https://registry.npmjs.org/mobx-keys-store/-/mobx-keys-store-1.1.0.tgz","integrity":"sha512-l8szT2XBu+wPFFOqHg6h8KUh6cHYxzdrfFZ1R/sLtL3rZjgvryCsYTTmVhIVVLGkcWBoUdcNSRdpe/bX/Pk6+A==","signatures":[{"sig":"MEUCIGsVuY8nMQ/g6eaj23cPDRfbaGNbBinOJDcUWNhx0NDUAiEA820SaMekDQJcNGw8rwnQMpIdjayKd8Y/7ieyoD+BoBg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"aaf8294e818e68dba3ac7c7ecb07f4e8f4b39fb2","gitHead":"d83faedbdeca5385109b8b972693dc1dc911f5dc","scripts":{"docs":"typedoc --mode file --theme minimal --tsconfig ./tsconfig.json --excludePrivate --out ./docs ./src","lint":"tslint './src/**/*.ts'","test":"NODE_ENV=test nyc mocha","build":"ntsc --outDir ./dist --experimentalDecorators --target es5 --module commonjs --declaration --pretty src/index.ts","watch":"nodemon -e .ts -i node_modules -i dist -i coverage -x mocha","dist:add":"npm run build && git add dist/","docs:add":"npm run docs && git add docs/","precommit":"npm run lint && npm test && npm run dist:add && npm run docs:add"},"typings":"dist/index.d.ts","_npmUser":{"name":"darkokukovec","email":"darko@kukovec.eu"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/infinum/mobx-keys-store.git","type":"git"},"_npmVersion":"4.2.0","description":"Keys store for MobX","directories":{},"_nodeVersion":"7.9.0","devDependencies":{"nyc":"^10.2.0","chai":"^3.5.0","mobx":"^3.1.9","husky":"^0.13.3","mocha":"^3.2.0","tslint":"^4.5.1","nodemon":"^1.11.0","ts-node":"^2.1.2","typedoc":"^0.5.10","typescript":"^2.3.0","@types/chai":"^3.5.0","@types/node":"^7.0.12","ntypescript":"^1.201609302242.1","@types/mocha":"^2.2.40"},"peerDependencies":{"mobx":"^2.7.0 || ^3"},"_npmOperationalInternal":{"tmp":"tmp/mobx-keys-store-1.1.0.tgz_1492345161682_0.4165970489848405","host":"packages-18-east.internal.npmjs.com"}}},"time":{"created":"2016-10-16T12:55:09.918Z","modified":"2025-09-17T07:23:51.857Z","1.0.0":"2016-10-16T12:55:09.918Z","1.0.1":"2017-02-18T18:03:55.942Z","1.1.0":"2017-04-16T12:19:22.488Z"},"bugs":{"url":"https://github.com/infinum/mobx-keys-store/issues"},"author":{"name":"Infinum","email":"javascript.team@infinum.co"},"license":"MIT","homepage":"https://github.com/infinum/mobx-keys-store#readme","keywords":["mobx","keys","store","observable"],"repository":{"url":"git+https://github.com/infinum/mobx-keys-store.git","type":"git"},"description":"Keys store for MobX","contributors":[{"name":"Darko Kukovec","email":"darko@infinum.co"}],"maintainers":[{"email":"accounts.npm@infinum.com","name":"infinumcom"},{"email":"npm@kuk.is","name":"darkokukovec"},{"email":"filip.voska@gmail.com","name":"fvoska"},{"email":"mihael.safaric+npm@gmail.com","name":"safo6m"},{"email":"dani.pavic@infinum.com","name":"danipavic"},{"email":"ACcounts.npm@infinum.com","name":"infinumco"}],"readme":"# mobx-keys-store\n\n[![Build Status](https://travis-ci.org/infinum/mobx-keys-store.svg?branch=master)](https://travis-ci.org/infinum/mobx-keys-store)\n[![Dependency Status](https://david-dm.org/infinum/mobx-keys-store.svg)](https://david-dm.org/infinum/mobx-keys-store)\n[![devDependency Status](https://david-dm.org/infinum/mobx-keys-store/dev-status.svg)](https://david-dm.org/infinum/mobx-keys-store#info=devDependencies)\n\n## Installation\n\n```bash\nnpm install mobx-keys-store\n```\n\n## Usage\n\n```javascript\nimport KeysStore from 'mobx-keys-store';\n\nconst initialState = {};\nconst store = new KeysStore(initialState);\n\n/*\n * Observe the store and its properties\n */\n\nstore.setItem('foo', 1);\nstore.increaseItem('foo');\n```\n\n## Documentation\n\n### Constructor\nThe constructor can receive an object with initial keys.\n\n### Store methods\n\n#### setItem(name, value)\nsetItem adds a new or updates an existing property.\n\n#### removeItem(name)\nremoveItem removes a property from the store.\n\n#### increaseItem(name, [amount=1])\nincreaseItem will increase the value of the selected property.\n\n#### decreaseItem(name, [amount=1])\ndecreaseItem will decrease the value of the selected property\n\n## Note\n\nIf you try to observe a property which doesn't yet exist, you might not be notified once the property is added. That's why it might be best to add the property to the initial store values.\n\n## License\n\nThe MIT License\n\n![](https://assets.infinum.co/assets/brand-logo-9e079bfa1875e17c8c1f71d1fee49cf0.svg) © 2016 Infinum Inc.\n","readmeFilename":"README.md"}