{"_id":"@cuban-engineer/redux-storage-middleware","_rev":"11-e86c2088eb78f0ac450115525cc2e87c","name":"@cuban-engineer/redux-storage-middleware","dist-tags":{"latest":"0.1.9"},"versions":{"0.1.2":{"name":"@cuban-engineer/redux-storage-middleware","version":"0.1.2","description":"Redux middleware for synchronizing store state with browser storages ","main":"./dist/reduxStorageMiddleware.js","scripts":{"clean":"rimraf dist","test":"jest --config=jest.config.json","test:coverage":"jest --config=jest.config.json --coverage","build":"webpack","publish":"--access public","prepublish":"npm run clean && npm run test && npm run build"},"keywords":["redux","storage","middleware","redux-middleware"],"pre-commit":["test"],"author":"","license":"ISC","devDependencies":{"babel-eslint":"^8.2.2","babel-jest":"^22.4.3","babel-preset-env":"^1.6.1","eslint":"^4.19.1","jest":"^22.4.3","jest-localstorage-mock":"^2.2.0","pre-commit":"^1.2.2","rimraf":"^2.6.2","prettier":"^1.11.1","eslint-plugin-prettier":"^2.6.0","eslint-config-prettier":"^2.9.0","redux-mock-store":"^1.5.1","webpack":"^4.5.0","webpack-cli":"^2.0.14"},"gitHead":"cdf3a9b20ab7a51901a79e9516b07181d8932bd9","_id":"@cuban-engineer/redux-storage-middleware@0.1.2","_npmVersion":"5.8.0","_nodeVersion":"8.9.3","_npmUser":{"name":"ygpedroso","email":"partner@aleph.engineering"},"dist":{"integrity":"sha512-O4heE4I2LF0j/L6kqMQygr/QPxKy05FKDfg99QC1GjTOh2agZTkTx/8rNSKXrEBX6lH27IHevQ1Jm9QF3inrVQ==","shasum":"947a20be808c8b7f0719f22618c94198f52bd509","tarball":"https://registry.npmjs.org/@cuban-engineer/redux-storage-middleware/-/redux-storage-middleware-0.1.2.tgz","fileCount":14,"unpackedSize":7605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZQoRj2QGfnWDPcJCSgtJnY2YTsN6MZrGmZ02VRvf5DAiEA3Mdi+76AFYbINHi2mc732lwDenx31BDUBhvD1ywXqYU="}]},"maintainers":[{"name":"aleph.developer","email":"aleph.developer+npm@aleph.engineering"},{"name":"jjyong","email":"jjyong666@gmail.com"},{"name":"refucktor","email":"hmvalcarcel@gmail.com"},{"name":"ygpedroso","email":"partner@aleph.engineering"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-storage-middleware_0.1.2_1523039127814_0.7299992467007441"},"_hasShrinkwrap":false},"0.1.3":{"name":"@cuban-engineer/redux-storage-middleware","version":"0.1.3","description":"Redux middleware for synchronizing store state with browser storages ","main":"./dist/reduxStorageMiddleware.js","scripts":{"clean":"rimraf dist","test":"jest --config=jest.config.json","test:coverage":"jest --config=jest.config.json --coverage","build":"webpack","publish":"--access public","prepublish":"npm run clean && npm run test && npm run build"},"keywords":["redux","storage","middleware","redux-middleware"],"pre-commit":["test"],"author":"","license":"ISC","devDependencies":{"babel-eslint":"^8.2.2","babel-jest":"^22.4.3","babel-preset-env":"^1.6.1","eslint":"^4.19.1","jest":"^22.4.3","jest-localstorage-mock":"^2.2.0","pre-commit":"^1.2.2","rimraf":"^2.6.2","prettier":"^1.11.1","eslint-plugin-prettier":"^2.6.0","eslint-config-prettier":"^2.9.0","redux-mock-store":"^1.5.1","webpack":"^4.5.0","webpack-cli":"^2.0.14"},"gitHead":"11a71a66538347ee32258d587154f9c4972c4450","_id":"@cuban-engineer/redux-storage-middleware@0.1.3","_npmVersion":"5.8.0","_nodeVersion":"8.9.3","_npmUser":{"name":"ygpedroso","email":"partner@aleph.engineering"},"dist":{"integrity":"sha512-7RIntc19BYtxdfHzjDzPGoee93kg7fl7DWL3k3PFPrWVK/oPvs15IaVoUjqFhnx9LAmV+CDRHMEoxm385onJ5g==","shasum":"d84b6868bdf024f86edc0195f467c4795ddbf101","tarball":"https://registry.npmjs.org/@cuban-engineer/redux-storage-middleware/-/redux-storage-middleware-0.1.3.tgz","fileCount":14,"unpackedSize":9100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHH4tTkA7Z0hYu5XOZBtxLUtWCcahbxY5zbbrbGLBIwBAiEArR9daKkFewooB5VSTrC6MS+aDQszYTWOhtciAZioWaI="}]},"maintainers":[{"name":"aleph.developer","email":"aleph.developer+npm@aleph.engineering"},{"name":"jjyong","email":"jjyong666@gmail.com"},{"name":"refucktor","email":"hmvalcarcel@gmail.com"},{"name":"ygpedroso","email":"partner@aleph.engineering"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-storage-middleware_0.1.3_1523040118503_0.488600895072427"},"_hasShrinkwrap":false},"0.1.4":{"name":"@cuban-engineer/redux-storage-middleware","version":"0.1.4","description":"Redux middleware for synchronizing store state with browser storages ","main":"./dist/reduxStorageMiddleware.js","scripts":{"clean":"rimraf dist","test":"jest --config=jest.config.json","test:coverage":"jest --config=jest.config.json --coverage","build":"webpack","publish":"--access public","prepublish":"npm run clean && npm run test && npm run build"},"keywords":["redux","storage","middleware","redux-middleware"],"pre-commit":["test"],"author":"","license":"ISC","devDependencies":{"babel-eslint":"^8.2.2","babel-jest":"^22.4.3","babel-preset-env":"^1.6.1","eslint":"^4.19.1","jest":"^22.4.3","jest-localstorage-mock":"^2.2.0","pre-commit":"^1.2.2","rimraf":"^2.6.2","prettier":"^1.11.1","eslint-plugin-prettier":"^2.6.0","eslint-config-prettier":"^2.9.0","redux-mock-store":"^1.5.1","webpack":"^4.5.0","webpack-cli":"^2.0.14"},"gitHead":"bd27fbbe5cc918b21f00fa4bdd1a248afb0625a7","_id":"@cuban-engineer/redux-storage-middleware@0.1.4","_npmVersion":"5.8.0","_nodeVersion":"8.9.3","_npmUser":{"name":"ygpedroso","email":"partner@aleph.engineering"},"dist":{"integrity":"sha512-HufBfum0fpILhRGN1qeexRI5UCkwgyFz6UGLlEknKGO5e4JpfeLbVZJe7wQDNClBNl4Cz5kYdbWSbrI3QsP5tg==","shasum":"d95184feaf56e8e1ff6459f172f22b8c5045f4f3","tarball":"https://registry.npmjs.org/@cuban-engineer/redux-storage-middleware/-/redux-storage-middleware-0.1.4.tgz","fileCount":14,"unpackedSize":9164,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFL75qgrSKxJOzVrn8BY4OSLft4WEwU0ycexgby3VRfMAiANG9OHtXb++zahdvwjYurHpIXfsUfd6piPKI/LeNFyBQ=="}]},"maintainers":[{"name":"aleph.developer","email":"aleph.developer+npm@aleph.engineering"},{"name":"jjyong","email":"jjyong666@gmail.com"},{"name":"refucktor","email":"hmvalcarcel@gmail.com"},{"name":"ygpedroso","email":"partner@aleph.engineering"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-storage-middleware_0.1.4_1523041194243_0.018641219306515078"},"_hasShrinkwrap":false},"0.1.5":{"name":"@cuban-engineer/redux-storage-middleware","version":"0.1.5","description":"Redux middleware for synchronizing store state with browser storages ","main":"./dist/reduxStorageMiddleware.js","scripts":{"clean":"rimraf dist","test":"jest --config=jest.config.json","test:coverage":"jest --config=jest.config.json --coverage","build":"webpack","publish":"--access public","prepublish":"npm run clean && npm run test && npm run build"},"keywords":["redux","storage","middleware","redux-middleware"],"pre-commit":["test"],"author":"","license":"ISC","devDependencies":{"babel-eslint":"^8.2.2","babel-jest":"^22.4.3","babel-preset-env":"^1.6.1","eslint":"^4.19.1","jest":"^22.4.3","jest-localstorage-mock":"^2.2.0","pre-commit":"^1.2.2","rimraf":"^2.6.2","prettier":"^1.11.1","eslint-plugin-prettier":"^2.6.0","eslint-config-prettier":"^2.9.0","redux-mock-store":"^1.5.1","webpack":"^4.5.0","webpack-cli":"^2.0.14"},"gitHead":"a8bf2dbab0cd100aecd1bb838a8c2c2328e962b6","_id":"@cuban-engineer/redux-storage-middleware@0.1.5","_npmVersion":"5.8.0","_nodeVersion":"8.9.3","_npmUser":{"name":"ygpedroso","email":"partner@aleph.engineering"},"dist":{"integrity":"sha512-D4MO080j1oceTkRjgc2v8gdU0XuD7+dHlTPeIEdTSD59O8JVpkKttrpgOFK/rW2CM7jWmkTgxwoyJd/6AfwoMw==","shasum":"40935bfea9013cc8a3577ed5cecb9a7a3d81b2d1","tarball":"https://registry.npmjs.org/@cuban-engineer/redux-storage-middleware/-/redux-storage-middleware-0.1.5.tgz","fileCount":14,"unpackedSize":9351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDocKvVLyQmx/ORrNwnklKbdY9ONx/AkqJxHU4spvgQFwIgUar14ITmdybnS8X8tKWNqUXniqs092MtyCxm87F2lok="}]},"maintainers":[{"name":"aleph.developer","email":"aleph.developer+npm@aleph.engineering"},{"name":"jjyong","email":"jjyong666@gmail.com"},{"name":"refucktor","email":"hmvalcarcel@gmail.com"},{"name":"ygpedroso","email":"partner@aleph.engineering"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-storage-middleware_0.1.5_1523042805131_0.28059925380172235"},"_hasShrinkwrap":false},"0.1.6":{"name":"@cuban-engineer/redux-storage-middleware","version":"0.1.6","description":"Redux middleware for synchronizing store state with browser storages ","main":"./dist/reduxStorageMiddleware.js","scripts":{"clean":"rimraf dist","test":"jest --config=jest.config.json","test:coverage":"jest --config=jest.config.json --coverage","build":"webpack","publish":"--access public","prepublish":"npm run clean && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/aleph-engineering/redux-storage-middleware.git"},"keywords":["redux","storage","middleware","redux-middleware"],"pre-commit":["test"],"author":"","license":"ISC","devDependencies":{"babel-eslint":"^8.2.2","babel-jest":"^22.4.3","babel-preset-env":"^1.6.1","eslint":"^4.19.1","jest":"^22.4.3","jest-localstorage-mock":"^2.2.0","pre-commit":"^1.2.2","rimraf":"^2.6.2","prettier":"^1.11.1","eslint-plugin-prettier":"^2.6.0","eslint-config-prettier":"^2.9.0","redux-mock-store":"^1.5.1","webpack":"^4.5.0","webpack-cli":"^2.0.14"},"gitHead":"364b5c3e9ac5ea1e4d33466d2a32b86a78a19bfe","bugs":{"url":"https://github.com/aleph-engineering/redux-storage-middleware/issues"},"homepage":"https://github.com/aleph-engineering/redux-storage-middleware#readme","_id":"@cuban-engineer/redux-storage-middleware@0.1.6","_npmVersion":"5.8.0","_nodeVersion":"8.9.3","_npmUser":{"name":"ygpedroso","email":"partner@aleph.engineering"},"dist":{"integrity":"sha512-xCy6mXm9gJpOQE0kTY8NFYrqsWKpwCJZGOEuNdmE6G0QDy5MTyb/R5Ha4NtZxLebq985j/xInsW4igQdokyC9A==","shasum":"45627e0938c888b8019cb37afe20a8cc9ce41e7b","tarball":"https://registry.npmjs.org/@cuban-engineer/redux-storage-middleware/-/redux-storage-middleware-0.1.6.tgz","fileCount":14,"unpackedSize":9442,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGL4cTnCe1ib1DBr3InQrxBpHT83SDb4yzy/CDd2LN/MAiAfkI0iegscFDt90QqPd7dtLE1zKulUPEA69ZMkwvvoPw=="}]},"maintainers":[{"name":"aleph.developer","email":"aleph.developer+npm@aleph.engineering"},{"name":"jjyong","email":"jjyong666@gmail.com"},{"name":"refucktor","email":"hmvalcarcel@gmail.com"},{"name":"ygpedroso","email":"partner@aleph.engineering"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-storage-middleware_0.1.6_1523043476993_0.7737120135918498"},"_hasShrinkwrap":false},"0.1.7":{"name":"@cuban-engineer/redux-storage-middleware","version":"0.1.7","description":"Redux middleware for synchronizing store state with browser storages ","main":"./dist/reduxStorageMiddleware.js","scripts":{"clean":"rimraf dist","test":"jest --config=jest.config.json","test:coverage":"jest --config=jest.config.json --coverage","build":"webpack","publish":"--access public","prepublish":"npm run clean && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/aleph-engineering/redux-storage-middleware.git"},"keywords":["redux","storage","middleware","redux-middleware"],"pre-commit":["test"],"author":"","license":"ISC","devDependencies":{"babel-eslint":"^8.2.2","babel-jest":"^22.4.3","babel-preset-env":"^1.6.1","eslint":"^4.19.1","jest":"^22.4.3","jest-localstorage-mock":"^2.2.0","pre-commit":"^1.2.2","rimraf":"^2.6.2","prettier":"^1.11.1","eslint-plugin-prettier":"^2.6.0","eslint-config-prettier":"^2.9.0","redux-mock-store":"^1.5.1","webpack":"^4.5.0","webpack-cli":"^2.0.14"},"gitHead":"2cc901cada54947decc1562d50b8b66334d4b3d7","bugs":{"url":"https://github.com/aleph-engineering/redux-storage-middleware/issues"},"homepage":"https://github.com/aleph-engineering/redux-storage-middleware#readme","_id":"@cuban-engineer/redux-storage-middleware@0.1.7","_npmVersion":"5.8.0","_nodeVersion":"8.9.3","_npmUser":{"name":"ygpedroso","email":"partner@aleph.engineering"},"dist":{"integrity":"sha512-EPKyf76cFFBde9NAbvNG3TnDqZtUe7yDzkrPnT1Kyfflm3CKM765Ky5JYwubT+MuIm5BEZvSaEEuRoaAQwIKtg==","shasum":"9733abf074c6b23c6cc559853e1f01adc5b22432","tarball":"https://registry.npmjs.org/@cuban-engineer/redux-storage-middleware/-/redux-storage-middleware-0.1.7.tgz","fileCount":14,"unpackedSize":9444,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDlHGQYfee8PbY/xMAR7BMGg0S1z94pv0xzBfmBeSF/hAiA+B9ijjpYNaOadQtXiyP4CGe2sfvcwqHHVxcmILitYPQ=="}]},"maintainers":[{"name":"aleph.developer","email":"aleph.developer+npm@aleph.engineering"},{"name":"jjyong","email":"jjyong666@gmail.com"},{"name":"refucktor","email":"hmvalcarcel@gmail.com"},{"name":"ygpedroso","email":"partner@aleph.engineering"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-storage-middleware_0.1.7_1523043616279_0.002775203480186228"},"_hasShrinkwrap":false},"0.1.8":{"name":"@cuban-engineer/redux-storage-middleware","version":"0.1.8","description":"Redux middleware for synchronizing store state with browser storages ","main":"./dist/reduxStorageMiddleware.js","scripts":{"clean":"rimraf dist","test":"jest --config=jest.config.json","test:coverage":"jest --config=jest.config.json --coverage","build":"webpack","publish":"--access public","prepublish":"npm run clean && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/aleph-engineering/redux-storage-middleware.git"},"keywords":["redux","storage","middleware","redux-middleware"],"author":"","license":"ISC","devDependencies":{"babel-eslint":"^8.2.2","babel-jest":"^22.4.3","babel-preset-env":"^1.6.1","eslint":"^4.19.1","jest":"^22.4.3","jest-localstorage-mock":"^2.2.0","rimraf":"^2.6.2","prettier":"^1.11.1","eslint-plugin-prettier":"^2.6.0","eslint-config-prettier":"^2.9.0","redux-mock-store":"^1.5.1","webpack":"^4.5.0","webpack-cli":"^2.0.14"},"gitHead":"173fa3dc46b48729f740f72e81b5b58b9a35c1ad","bugs":{"url":"https://github.com/aleph-engineering/redux-storage-middleware/issues"},"homepage":"https://github.com/aleph-engineering/redux-storage-middleware#readme","_id":"@cuban-engineer/redux-storage-middleware@0.1.8","_npmVersion":"5.8.0","_nodeVersion":"8.9.3","_npmUser":{"name":"ygpedroso","email":"partner@aleph.engineering"},"dist":{"integrity":"sha512-2UBIVRNwL9IWmyly4+NRrnNK+ONxs2cNeIM+J/hsj0ukjh3RhWAdpNzoqAeOyi8RY7TY2jhThMGOtQpJb10o7w==","shasum":"06279df6720abb42751ae5ee318ce8c65dc389a2","tarball":"https://registry.npmjs.org/@cuban-engineer/redux-storage-middleware/-/redux-storage-middleware-0.1.8.tgz","fileCount":15,"unpackedSize":19175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAm/OTEjPrRlin87Z0aLHjIuMGSi2iyU3E1Pd/ta7TQ5AiB54F2RdL+hCZuEKJry9LFbMCRjAQZXkr2NxcpAk8jVyA=="}]},"maintainers":[{"name":"aleph.developer","email":"aleph.developer+npm@aleph.engineering"},{"name":"jjyong","email":"jjyong666@gmail.com"},{"name":"refucktor","email":"hmvalcarcel@gmail.com"},{"name":"ygpedroso","email":"partner@aleph.engineering"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-storage-middleware_0.1.8_1523376355428_0.09274907590212256"},"_hasShrinkwrap":false},"0.1.9":{"name":"@cuban-engineer/redux-storage-middleware","version":"0.1.9","description":"Redux middleware for synchronizing store state with browser storages ","main":"./dist/reduxStorageMiddleware.js","scripts":{"clean":"rimraf dist","test":"jest --config=jest.config.json","test:coverage":"jest --config=jest.config.json --coverage","build":"webpack","publish":"--access public","prepublish":"npm run clean && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/aleph-engineering/redux-storage-middleware.git"},"keywords":["redux","storage","middleware","redux-middleware"],"author":"","license":"ISC","devDependencies":{"babel-eslint":"^8.2.2","babel-jest":"^22.4.3","babel-preset-env":"^1.6.1","eslint":"^4.19.1","jest":"^22.4.3","jest-localstorage-mock":"^2.2.0","rimraf":"^2.6.2","prettier":"^1.11.1","eslint-plugin-prettier":"^2.6.0","eslint-config-prettier":"^2.9.0","redux-mock-store":"^1.5.1","webpack":"^4.5.0","webpack-cli":"^2.0.14"},"gitHead":"d1240a995e5bef57ce51b5c0751e0d37d6eb8854","bugs":{"url":"https://github.com/aleph-engineering/redux-storage-middleware/issues"},"homepage":"https://github.com/aleph-engineering/redux-storage-middleware#readme","_id":"@cuban-engineer/redux-storage-middleware@0.1.9","_npmVersion":"5.8.0","_nodeVersion":"8.9.3","_npmUser":{"name":"ygpedroso","email":"partner@aleph.engineering"},"dist":{"integrity":"sha512-Iws/lZskBbq1/nu7jZ3hlflwvt/RU+bYun1AOkbSD011/emJItCfeb4yr4w3Uys0Bvc2z4iStIhaQiw9QgDz4w==","shasum":"a5a48bf2d2ec8047cfbc036f7353c673c91523de","tarball":"https://registry.npmjs.org/@cuban-engineer/redux-storage-middleware/-/redux-storage-middleware-0.1.9.tgz","fileCount":16,"unpackedSize":20710,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB0vWGhCnwoYKWSJ5W5XE1N55C9lYzMPnZt8WhKdFD5yAiEA9dP8FWqr/8GhwSTWDJEvObOnvIFVMkj9k6aCIwMSil8="}]},"maintainers":[{"name":"aleph.developer","email":"aleph.developer+npm@aleph.engineering"},{"name":"jjyong","email":"jjyong666@gmail.com"},{"name":"refucktor","email":"hmvalcarcel@gmail.com"},{"name":"ygpedroso","email":"partner@aleph.engineering"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-storage-middleware_0.1.9_1523457670646_0.3112213703084945"},"_hasShrinkwrap":false}},"time":{"created":"2018-04-06T18:25:27.766Z","0.1.2":"2018-04-06T18:25:27.882Z","modified":"2022-04-05T02:08:57.853Z","0.1.3":"2018-04-06T18:41:58.651Z","0.1.4":"2018-04-06T18:59:54.292Z","0.1.5":"2018-04-06T19:26:45.281Z","0.1.6":"2018-04-06T19:37:57.107Z","0.1.7":"2018-04-06T19:40:16.347Z","0.1.8":"2018-04-10T16:05:55.511Z","0.1.9":"2018-04-11T14:41:10.716Z"},"maintainers":[{"email":"partner@aleph.engineering","name":"ygpedroso2503"},{"email":"hmvalcarcel@gmail.com","name":"refucktor"},{"email":"aleph.developer+npm@aleph.engineering","name":"aleph.developer"},{"email":"jjyong666@gmail.com","name":"jjyong"}],"description":"Redux middleware for synchronizing store state with browser storages ","keywords":["redux","storage","middleware","redux-middleware"],"license":"ISC","readme":"# What makes the library better?\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)   [![code linting: jest](https://img.shields.io/badge/lint-eslint-blue.svg)](https://github.com/eslint/eslint)  [![code quality: jest](https://img.shields.io/badge/test-jest-ff69b4.svg)](https://facebook.github.io/jest/)  ![test coverage](https://img.shields.io/badge/coverage-100-green.svg)  [![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n\n# Installation\n## Using npm:\n```sh\nnpm i --save @cuban-engineer/redux-storage-middleware\n```\n\n# Usage\n## If you are using ES modules:\n```javascript\nimport reduxStorageMiddleware from '@cuban-engineer/redux-storage-middleware';\n```\n\n## Apply middleware to Redux:\n```javascript\nimport { applyMiddleware, createStore } from 'redux';\nimport reduxStorageMiddleware from '@cuban-engineer/redux-storage-middleware';\nimport rootReducer from './reducers/index';\n \nconst store = createStore(\n  rootReducer,\n  applyMiddleware(reduxStorageMiddleware)\n);\n```\n\n# Describe what needs to be saved in your Redux actions\n## For simple Redux states\nSuppose you already have this simple action for changing the logged user token in your application for sending requests to an API.\n```javascript\nexport const changeUserToken = userToken =>\n    ({\n        type: 'CHANGE_USER_TOKEN',\n        userToken\n    });\n```\nSimply by adding the `sync` property which is an array of simple json objects that `@cuban-engineer/redux-storage-middleware` understands you can define what and where to save after the Reducer handle your action.\n```javascript\nexport const changeUserToken = userToken =>\n    ({\n        type: 'CHANGE_USER_TOKEN',\n        userToken,\n        sync: [\n            {\n                name: 'userToken',\n                where: ['session', 'local'],\n                hierarchy: ['user'],\n            },\n        ],\n    });\n```\n## Sync property Example\n```javascript\n    sync: [\n        {\n            // Key in which will be saved the data in the Browser storage. \n            // If is not defined the key will be the @name attribute.\n            key: 'token',\n            // Literal name of the object in the Redux State that wants to be saved to the Browser storage.\n            name: 'userToken',\n            // Array of string enumerating where to save the data in the Browser storage.\n            // Currently only Session and Local Storage. Cookies storage is coming son.\n            // If only want to save in a single place is also possible to define it as a simple string, like this:\n            // where: 'session'\n            // If not defined, saving will occur in the Session Storage. \n            where: ['session', 'local'],\n            // For more complex Stores, if using combineReducers for instance, the entire tree hierarchy for\n            // obtaining the object in the State can be defined in the hierarchy attribute.\n            // If only one level is needed to reach the desire object from the state, is also possible to define\n            // the attribute as a simple string, like this hierarchy: 'ui'.\n            // Example: state.user.userToken \n            hierarchy: ['user'],\n        },\n    ]\n```\n\n## License\n@cuban-engineer/redux-storage-middleware is [MIT-licensed](https://github.com/aleph-engineering/redux-storage-middleware/blob/master/LICENSE).\n\n","readmeFilename":"readme.md","homepage":"https://github.com/aleph-engineering/redux-storage-middleware#readme","repository":{"type":"git","url":"git+https://github.com/aleph-engineering/redux-storage-middleware.git"},"bugs":{"url":"https://github.com/aleph-engineering/redux-storage-middleware/issues"}}