{
  "_id": "iron-store",
  "maintainers": [
    {
      "name": "vvo",
      "email": "vincent@codeagain.com"
    }
  ],
  "dist-tags": {
    "latest": "1.3.5",
    "next": "1.3.0"
  },
  "author": {
    "name": "Vincent Voyer",
    "email": "vincent@codeagain.com"
  },
  "_rev": "12-fb749a6b61766012349f187ef2b443c2",
  "description": "in-memory, signed and encrypted JavaScript store",
  "readme": "# iron-store [![GitHub license](https://img.shields.io/github/license/vvo/iron-store?style=flat)](https://github.com/vvo/iron-store/blob/main/LICENSE) [![Tests](https://github.com/vvo/iron-store/workflows/CI/badge.svg)](https://github.com/vvo/iron-store/actions) [![codecov](https://codecov.io/gh/vvo/iron-store/branch/main/graph/badge.svg)](https://codecov.io/gh/vvo/iron-store) ![npm](https://img.shields.io/npm/v/iron-store)\n\n_🧿 in-memory, signed and encrypted JavaScript store_\n\n---\n\nThis is a low-level module that you can use to implement signed and encrypted sessions using cookies for example, like [`next-iron-session`](https://github.com/vvo/next-iron-session) does.\n\nSignature and encryption is based on [@hapi/iron](https://hapi.dev/family/iron/).\n\nUse https://1password.com/password-generator/ to generate strong passwords.\n\nYou can use multiple passwords (password rotation).\n\n```bash\nnpm add iron-store\n```\n\n## Examples\n\n**Creating a store with sealed data (_encrypt_)**:\n\n```js\nimport ironStore from \"iron-store\";\n\nconst store = await ironStore({\n  password: \"generated_complex_password_at_least_32_characters_long\",\n});\nstore.set(\"user\", { id: 80, admin: true });\nconst seal = await store.seal();\n//\n```\n\n**Creating a store from previously sealed data (_decrypt_)**:\n\n```js\nimport ironStore from \"iron-store\";\n\nconst store = await ironStore({\n  password: \"generated_complex_password_at_least_32_characters_long\",\n  sealed: \"seal_obtained_from_previous_store.seal()_call\",\n});\nconst user = store.get(\"user\");\nconsole.log(user);\n// { id:80, admin:true }\n```\n\n**Creating a store using multiple passwords (_password rotation_)**:\n\nYou can implement password rotation by providing an array of passwords and ids. The id can be a string (letters, numbers and \\_) or just a number.\n\nThe first password in the array is always the one used to `seal` data. All the other passwords are used to decrypt data.\n\nNote: The `id` is mandatory and part of the seal, so that we can know in advance which password to use when decrypting. You need to use unique ids. You cannot reuse a id for a different password.\n\nNote: If you started to use the `string` form of password, you can always move to an `array` of password objects. The `string` form of your password is internally handled as `{ id: 1, password }`.\n\n```js\nimport ironStore from \"iron-store\";\n\nconst store = await ironStore({\n  password: [\n    {\n      id: 2,\n      password: \"generated_complex_password_at_least_32_characters_long\",\n    },\n    {\n      id: 1,\n      password: \"generated_complex_password_at_least_32_characters_long\",\n    },\n  ],\n});\nstore.set(\"user\", { id: 80, admin: true });\nconst seal = await store.seal();\n```\n\n## API\n\n### ironStore({ [sealed], password, ttl = 0 })\n\n### store.set(name, value)\n\n### store.get([name])\n\n### store.setFlash(name, value)\n\n### store.unset(name)\n\n### store.seal()\n\n### store.clear()\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/vvo/iron-store.git"
  },
  "bugs": {
    "url": "https://github.com/vvo/iron-store/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "iron-store",
      "version": "1.0.0",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "check-formatting": "prettier --check './**/*.?(json|js|md|css)' && eslint .",
        "prepublishOnly": "yarn build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && yarn check-formatting"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended"
        ]
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "7.8.4",
        "@babel/core": "7.8.7",
        "@babel/preset-env": "7.8.7",
        "@types/jest": "25.1.4",
        "babel-jest": "25.1.0",
        "eslint": "6.8.0",
        "eslint-plugin-jest": "23.8.2",
        "jest": "25.1.0",
        "jest-date-mock": "1.0.8",
        "prettier": "1.19.1",
        "prettier-plugin-packagejson": "2.0.10",
        "semantic-release": "^17.0.4",
        "semantic-release-cli": "5.2.3"
      },
      "renovate": {
        "extends": [
          "config:js-lib"
        ]
      },
      "gitHead": "8e9a8385f2d076fb1f9b27cc255bbf0f733ad9df",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@1.0.0",
      "_nodeVersion": "12.16.1",
      "_npmVersion": "6.14.2",
      "dist": {
        "integrity": "sha512-bwv/lD+zQYDzrGHpXP5ajm4Ge9Vgk+DE3I9WGHnmUic3X1Uk5MwtkhJMIw2fNiUddSS3R5AgTkMhvFYsamN+TQ==",
        "shasum": "0fe5736d5bc376f7c1dc3f3cf64526db6f95ae77",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-1.0.0.tgz",
        "fileCount": 7,
        "unpackedSize": 12518,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZh2FCRA9TVsSAnZWagAAdwEP+wXtJVjOBUJ58YNYzJJI\nxFLXZ/QPhZFVAHV0TCicpAmcYc23ETCWxb/SAUvTFM8fCZVUDYvHl2U8BC45\nE20vf2K23IBZogCNTwU5PkDqyaJVC5JXyxJOHe8qZrX3CL0zX7MIZKeprt1z\n5Ue2R1KWwTQuqzhgFp9SqUL8mRkwIRq+if/aQt89GDKo1Yx1nIfNEth771Vm\nDup4+RBu1P9gvmZ22PUTQgYHIVJsZi42QILzcOBE8OKYJ0DYm5dqtPwVhZny\nP/zF9kYLGegBxrQ/5cNxi++oNSWOB/TKt4pHtTMV+Vx13JPML8No6u0MG6I9\nOEC/3CR6YGx3SGZHAgXmVr5AW3fuO0C+E44wDenb/OOaIgvYO7f8+dTQBsJl\nR1KCt1lsSg7G8Y41n6eZKQeAV70g5n06laUISkLo4c9iB7ubtcFb0hfkhJDn\n8O3gOrUak8l5lzl+KH4di1d1EZGsyeKros3bsQaqVKmaBxWrxnggrDlFQzVX\nVIJXvuvAhkd37widmfOJotJ2KiMk8+krEEdKvmVWqubr70TFLFf4sZvLlyKd\nvJvqntcOlF/kKpCXl154rZ3H/UmqOhFnfp96EXl3QHcg3D/Ae6EYKG5Ce9vx\ntmJ1NFt9eNWP3WbUyPFiW2Bca/B1ecAzHL0iDTmAYFBhIpbZCISD0duH6ONe\n6Pdr\r\n=PLEB\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDNgNgQBnyrh6/5YL5t+BGPEICxxXhxE5ArG2WursuBAwIhAICBnWkuetY4S4RRSFAve4UdE+oS5rWRzXz87n+uO9Dl"
          }
        ]
      },
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent.voyer@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "vvo",
        "email": "vincent.voyer@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_1.0.0_1583750533055_0.7693202539384949"
      },
      "_hasShrinkwrap": false
    },
    "1.1.0": {
      "name": "iron-store",
      "version": "1.1.0",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "check-formatting": "prettier --check './**/*.?(json|js|md|css)' && eslint .",
        "prepublishOnly": "yarn build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && yarn check-formatting"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "prettier": {
        "arrowParens": "always"
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended"
        ]
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "7.8.4",
        "@babel/core": "7.8.7",
        "@babel/preset-env": "7.8.7",
        "@types/jest": "25.1.4",
        "babel-jest": "25.1.0",
        "eslint": "6.8.0",
        "eslint-plugin-jest": "23.8.2",
        "jest": "25.1.0",
        "jest-date-mock": "1.0.8",
        "prettier": "1.19.1",
        "prettier-plugin-packagejson": "2.0.10",
        "semantic-release": "17.0.4",
        "semantic-release-cli": "5.2.3"
      },
      "renovate": {
        "extends": [
          "config:js-lib"
        ]
      },
      "gitHead": "1f171ed1c617db3a7cb4e8ddca4d8e52191866bc",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@1.1.0",
      "_nodeVersion": "12.16.1",
      "_npmVersion": "6.14.2",
      "dist": {
        "integrity": "sha512-C4N/2xYzSy6a9Br2/B2BCVz53fWAAMZNgNPChqXEblRKaif0p8FD7UlNVz2eI2PJ6aURN4+ibeIBT5IKtV09vw==",
        "shasum": "16919dd476660ad0c2e7c7b2be9d98878deba5b1",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-1.1.0.tgz",
        "fileCount": 7,
        "unpackedSize": 13363,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ2BxCRA9TVsSAnZWagAAiVAP/2LdWhX2bGWcPmKSat/x\nmmpK82D0/DsIHUIzwsFDBD1UjuM9vcfj6FfeYCsHDFZ2Wx/HPz6OW9t7aaRy\n1tw/Mq0rvI3ripG8ICGvOI1H8IzzMJVlRbz92usYB8fLPz7sn32NyBVimt83\ntD1w3A1NdcuErVRIkUfHlknOkN4bRtABqn/ugBRKlVAeC0lH4+aye6U9LaW4\nA3L/ceK+p+HkGWsVNN8R1YHn7a8EVZ083CqmFguuKByMzEJIECJV7tVr7hLO\n3ehx2lZyCMVO7KsCIKnGFP5KPuIoJnG2ld4BMW/EDMynRxJ7IDkv3r+oI7W8\nmuSkUP23Mevqzw7OtG+seEs+sHjx9dF8hbDXOB6AWUVo19Qu/eKbdsyZ2FMH\nG6R/t/In9+1+K6hnUnGgZDFSeOxIraVxkQ7jnBLdoj88jYJ1J5yd1oipbafq\nHsh/aNhpvdH2fC3opoz+Lr3SB/pQfuv+0JzL0/28lGIrznnhvrB4MaETsyhC\n+Ei0UmeoW01nEymLxCkxK35aIFvhFASRHZF4D3JtNwD9aEFmtJVscjaRJJ0Q\noReWtISS5iHoToZVxZegTiMVr1/62mSkmkUzR1DR3wgOxaP+HDGVXfAqpzGV\nh6IMtKhSd+wZquhgOhSdpLcrBdOt0yGiBirmieYjPAsyIwsF5J0PrrCWQhYe\nOb7s\r\n=uT5S\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIDKwb/JxvCZTwAJinCIBR8Bv+5Wstgf2GfDyiEWx8VWsAiApjUQjoqg0i7UJOrBDddGYTg2nfUG05kaoFSHl4gJp4Q=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent.voyer@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "vvo",
        "email": "vincent.voyer@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_1.1.0_1583833201064_0.8319683405907692"
      },
      "_hasShrinkwrap": false
    },
    "1.2.0": {
      "name": "iron-store",
      "version": "1.2.0",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "check-formatting": "prettier --check './**/*.?(json|js|md|css)' && eslint .",
        "prepublishOnly": "yarn build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && yarn check-formatting"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "prettier": {
        "arrowParens": "always"
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended"
        ]
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "7.8.4",
        "@babel/core": "7.8.7",
        "@babel/preset-env": "7.8.7",
        "@types/jest": "25.1.4",
        "babel-jest": "25.1.0",
        "eslint": "6.8.0",
        "eslint-plugin-jest": "23.8.2",
        "jest": "25.1.0",
        "jest-date-mock": "1.0.8",
        "prettier": "1.19.1",
        "prettier-plugin-packagejson": "2.0.10",
        "semantic-release": "17.0.4",
        "semantic-release-cli": "5.2.3"
      },
      "renovate": {
        "extends": [
          "config:js-lib"
        ]
      },
      "gitHead": "2c01e0ea69e48e152c5d966a173856484ac87943",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@1.2.0",
      "_nodeVersion": "12.16.1",
      "_npmVersion": "6.14.2",
      "dist": {
        "integrity": "sha512-wt1cW5WjEa0gzQ3GsVujjCH6Rtn2skn6CXZcG6n3PWM+8QtsGqkpI2rb/phdTnpH23JgZudckCLNEg3yYOTA6g==",
        "shasum": "a446c110aa71fa7c3a78fdbad182fe4be0544298",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-1.2.0.tgz",
        "fileCount": 7,
        "unpackedSize": 14140,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ7f0CRA9TVsSAnZWagAAgWgP/30erIE1aa3e7R79Biix\nPq4Mxbh24WIyMWx068wYbWpkt3Agh2Kzf/h7sKwq3v4x9h+h7xf+Vf3QMre8\nA00UZFr0GFwImGZzZsxfXOcC2DfOznAfyo7XN4i5A3KEIBW2dkughh86g8V6\nAJt90u9kfc8++PGJZuXmTN4/WOKEsHnbqX+Kus/1n0PPa1DEB7W4ctj+6J29\nBwYbWuGwqYwACXcC35zEbpO6FQ2xUARtAHqgOcH3dYNK3iQihut11q7S+nzJ\nSdQwLi2gqXAnXIXD+EQa76hKdXndK5YRqgkWvbtd8xdvfMDPiIKkVel9Tn5j\nnAOtVcHRB/tgsZpt3YnadB4sUwZagE0yIwawDGMK5Mz3k/QHp5VIUD7+UgXZ\nc+MgsCzeYt/YF84thT7f4VfAfemG+7KJ88SNWWqiu/fd/Qolfu2uEvXDQf/q\nPeMiPV/lZ3D6gTW8364FtjfITc89I/pYWLmR/UiPobJP0xYAk7myzU2T52+C\n3ev2dbP+7cgOt3gYyUdfiQmF6wy6VdALp/dF9NNuFBqm4oeSxg5RyydmrUci\nrGJ4x/5XCOMzZBLGfVMxp/+Hs8ybgd2jJTwMinjUK9Zx2kQjWWu2DayXduhR\nq1yLEi/ORZPrukksMX+xPVZg/kFrFOe0q6RBvOjpZ2vkE2WE+JUXSKrBq0f6\nb4hN\r\n=rX2h\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDr3r4OsT2gBwhVPRrYgsCk8zdAkKpIeO/jJN/ssV89PAIgSw2NDn1lwIJEZFxUGXePGd+qDWmCmZvNoNI2wdpy6xo="
          }
        ]
      },
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent.voyer@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "vvo",
        "email": "vincent.voyer@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_1.2.0_1583855604361_0.15621825591402372"
      },
      "_hasShrinkwrap": false
    },
    "1.3.0": {
      "name": "iron-store",
      "version": "1.3.0",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "format": "prettier --write '**/*.*' && eslint . --fix",
        "lint": "prettier --check '**/*.*' && eslint .",
        "prepublishOnly": "yarn build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && yarn lint"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "prettier": {
        "trailingComma": "all"
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parser": "babel-eslint",
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended",
          "plugin:import/recommended"
        ],
        "rules": {
          "arrow-body-style": [
            "error",
            "always"
          ],
          "curly": "error",
          "import/order": [
            "error",
            {
              "newlines-between": "always"
            }
          ]
        }
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "7.8.4",
        "@babel/core": "7.9.0",
        "@babel/preset-env": "7.9.5",
        "@types/jest": "25.2.1",
        "babel-eslint": "10.1.0",
        "babel-jest": "25.5.0",
        "eslint": "6.8.0",
        "eslint-plugin-import": "2.20.2",
        "eslint-plugin-jest": "23.8.2",
        "jest": "25.5.0",
        "jest-date-mock": "1.0.8",
        "prettier": "2.0.5",
        "prettier-plugin-packagejson": "2.2.2",
        "semantic-release": "17.0.7",
        "semantic-release-cli": "5.2.3"
      },
      "renovate": {
        "extends": [
          "config:js-lib",
          ":automergePatch",
          ":automergeBranch",
          ":automergePatch",
          ":automergeBranch",
          ":automergeLinters",
          ":automergeTesters",
          ":automergeTypes"
        ]
      },
      "readme": "# iron-store [![GitHub license](https://img.shields.io/github/license/vvo/iron-store?style=flat)](https://github.com/vvo/iron-store/blob/master/LICENSE) [![Tests](https://github.com/vvo/iron-store/workflows/CI/badge.svg)](https://github.com/vvo/iron-store/actions) [![codecov](https://codecov.io/gh/vvo/iron-store/branch/master/graph/badge.svg)](https://codecov.io/gh/vvo/iron-store) ![npm](https://img.shields.io/npm/v/iron-store)\n\n_🧿 in-memory, signed and encrypted JavaScript store_\n\n---\n\nThis is a low-level module that you can use to implement signed and encrypted sessions using cookies for example, like [`next-iron-session`](https://github.com/vvo/next-iron-session) does.\n\nSignature and encryption is based on [@hapi/iron](https://hapi.dev/family/iron/).\n\nUse https://1password.com/password-generator/ to generate strong passwords.\n\nYou can use multiple passwords (password rotation).\n\n```bash\nnpm add iron-store\n```\n\n## Examples\n\n**Creating a store with sealed data (_encrypt_)**:\n\n```js\nimport ironStore from \"iron-store\";\n\nconst store = await ironStore({\n  password: \"generated_complex_password_at_least_32_characters_long\",\n});\nstore.set(\"user\", { id: 80, admin: true });\nconst seal = await store.seal();\n//\n```\n\n**Creating a store from previously sealed data (_decrypt_)**:\n\n```js\nimport ironStore from \"iron-store\";\n\nconst store = await ironStore({\n  password: \"generated_complex_password_at_least_32_characters_long\",\n  sealed: \"seal_obtained_from_previous_store.seal()_call\",\n});\nconst user = store.get(\"user\");\nconsole.log(user);\n// { id:80, admin:true }\n```\n\n**Creating a store using multiple passwords (_password rotation_)**:\n\nYou can implement password rotation by providing an array of passwords and ids. The id can be a string (letters, numbers and \\_) or just a number.\n\nThe first password in the array is always the one used to `seal` data. All the other passwords are used to decrypt data.\n\nNote: The `id` is mandatory and part of the seal, so that we can know in advance which password to use when decrypting. You need to use unique ids. You cannot reuse a id for a different password.\n\nNote: If you started to use the `string` form of password, you can always move to an `array` of password objects. The `string` form of your password is internally handled as `{ id: 1, password }`.\n\n```js\nimport ironStore from \"iron-store\";\n\nconst store = await ironStore({\n  password: [\n    {\n      id: 2,\n      password: \"generated_complex_password_at_least_32_characters_long\",\n    },\n    {\n      id: 1,\n      password: \"generated_complex_password_at_least_32_characters_long\",\n    },\n  ],\n});\nstore.set(\"user\", { id: 80, admin: true });\nconst seal = await store.seal();\n```\n\nTh\n\n## API\n\n### ironStore({ [sealed], password, ttl = 0 })\n\n### store.set(name, value)\n\n### store.get([name])\n\n### store.setFlash(name, value)\n\n### store.unset(name)\n\n### store.seal()\n\n### store.clear()\n",
      "readmeFilename": "README.md",
      "gitHead": "5ce4fef4769aef0ebfedde424f06ae47eabaeb15",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@1.3.0",
      "_nodeVersion": "12.16.3",
      "_npmVersion": "6.14.2",
      "dist": {
        "integrity": "sha512-Ics0Xy/1TTjOhZFLkarOpWfXp4TJ7foiKBFC/aXJH1bKwafNKrEhrHNeHyA/Jqx57tlhpIbGoNC3RUB+rRIz8Q==",
        "shasum": "bcd8c0a5b0d89b27de4ce4ee7979574f8e903b89",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-1.3.0.tgz",
        "fileCount": 7,
        "unpackedSize": 24042,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJequXmCRA9TVsSAnZWagAAFecP/0gwmxGarOJqD6sPSlKl\nWWaQDFChR0C1CxNlV7S03t89Qi8qjS7d3dT2aBPOUOUnmcs/b5C0cbaX/o3o\nI8I1KhVlj3GqSrCezHOzFuj4yf+TONTn6T9wIJ1O1ofC6xgakuyW5kNQPy2u\nq6Vu2c6jcBljzIcL8Fwihe8pH9FITccog+gSUD7HNX+9iVeHKr6ctdTiwP2w\ndKiunp6KMrGVAe8Kqi8OlpSiVggtYrCszWMWZ2X+2GLQsxA8z5+SUHOp5jEe\ng9yv8RmKuBoQmf7A5WzWhC1ypNNNEIEXn0A2+HNGm7ilPTBt5UaZQuH0e5Vc\nL9MyGkOavaPkSxeVvvkBCJ4Ww0IFQmXavRUT7RFaC4uybnVIVfAhuIJNudb4\nRknh9yxbrmvrNakAU2asXIOPSpsaEQdm9etJca6bJ6qZZaTgIObuwnlbnatf\nYQ7T/+Hb4ylbt5nQj2ZYux4mEikm8cCluXqT/YXOVp3Ln5/GbWhprK8LyG13\n4AiI+tO7VHkSpUjEe0pLlLKIvLSIvhIqOSXaVnl1nvouag2qAvu2O8ab8Kwx\nsExNbJOisyvt+oEIJgyLDUL1WcJzQkOzRqFGta/woS37wc4h/aLPyaDGSptW\nlvbZoWfzRa6owxl1j2AqFU8u1gPvWOs2yB+OlGtiKMvplI/1nTY6lepSMbgb\nJCPS\r\n=EHRb\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDEGlL3f+68JvUiSxrH/8QzHR33RoH7qU41LE8wP2C3hwIhANmA9XqKYlYu9SNuUB+5Yvb82qVmt5yh0JNNVUSIVALj"
          }
        ]
      },
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent.voyer@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "vvo",
        "email": "vincent.voyer@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_1.3.0_1588258277802_0.31884235211838985"
      },
      "_hasShrinkwrap": false
    },
    "0.0.0-development": {
      "name": "iron-store",
      "version": "0.0.0-development",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "types": "lib/index.d.ts",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "format": "prettier --write '**/*.*' && eslint . --fix",
        "lint": "prettier --check '**/*.*' && eslint .",
        "prepublishOnly": "npm run build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && npm run lint"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "prettier": {
        "trailingComma": "all"
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parser": "babel-eslint",
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended",
          "plugin:import/recommended"
        ],
        "rules": {
          "arrow-body-style": [
            "error",
            "always"
          ],
          "curly": "error",
          "import/order": [
            "error",
            {
              "newlines-between": "always"
            }
          ]
        }
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "^7.15.7",
        "@babel/core": "^7.15.5",
        "@babel/preset-env": "^7.15.6",
        "@types/jest": "^27.0.2",
        "babel-eslint": "10.1.0",
        "babel-jest": "^27.2.4",
        "eslint": "^7.32.0",
        "eslint-plugin-import": "^2.24.2",
        "eslint-plugin-jest": "^24.5.2",
        "jest": "^27.2.4",
        "jest-date-mock": "1.0.8",
        "prettier": "^2.4.1",
        "prettier-plugin-packagejson": "^2.2.13",
        "semantic-release": "^18.0.0",
        "semantic-release-cli": "^5.4.4"
      },
      "renovate": {
        "extends": [
          "config:js-lib",
          ":automergePatch",
          ":automergeBranch",
          ":automergePatch",
          ":automergeBranch",
          ":automergeLinters",
          ":automergeTesters",
          ":automergeTypes"
        ],
        "timezone": "Europe/Paris",
        "schedule": [
          "before 3am on Monday"
        ],
        "groupName": "all"
      },
      "gitHead": "5e31c860bdfceff33ff345475d3f309daefc71e7",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@0.0.0-development",
      "_nodeVersion": "16.10.0",
      "_npmVersion": "7.24.0",
      "dist": {
        "integrity": "sha512-3H86lJcVf7Hxt+7i9GdTR26I6LzGBIK+2PsLANlDbIMkoI06DeVRTA2tdz0zaI2oeVVg2UqqWal4GqgVv6Opjg==",
        "shasum": "d93016bc8fea656ac641fd0fa3295af569bc01c8",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-0.0.0-development.tgz",
        "fileCount": 8,
        "unpackedSize": 24681,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIDJhOvUAHGcz2OzxFoNyHuBB7Pj7XHiDPf32zzFsO4KrAiEA+Zk77oqz/xiARvFYffmaNCczUe9wkSuHws6KCBCEHpo="
          }
        ]
      },
      "_npmUser": {
        "name": "vvo",
        "email": "vincent@codeagain.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent@codeagain.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_0.0.0-development_1634419759978_0.9891111762132088"
      },
      "_hasShrinkwrap": false
    },
    "1.3.1": {
      "name": "iron-store",
      "version": "1.3.1",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "types": "lib/index.d.ts",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "format": "prettier --write '**/*.*' && eslint . --fix",
        "lint": "prettier --check '**/*.*' && eslint .",
        "prepublishOnly": "npm run build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && npm run lint"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "prettier": {
        "trailingComma": "all"
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parser": "babel-eslint",
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended",
          "plugin:import/recommended"
        ],
        "rules": {
          "arrow-body-style": [
            "error",
            "always"
          ],
          "curly": "error",
          "import/order": [
            "error",
            {
              "newlines-between": "always"
            }
          ]
        }
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "^7.15.7",
        "@babel/core": "^7.15.8",
        "@babel/preset-env": "^7.15.8",
        "@types/jest": "^27.0.2",
        "babel-eslint": "10.1.0",
        "babel-jest": "^27.2.5",
        "eslint": "^7.32.0",
        "eslint-plugin-import": "^2.25.2",
        "eslint-plugin-jest": "^24.5.2",
        "jest": "^27.2.5",
        "jest-date-mock": "1.0.8",
        "prettier": "^2.4.1",
        "prettier-plugin-packagejson": "^2.2.13",
        "semantic-release": "^18.0.0",
        "semantic-release-cli": "^5.4.4"
      },
      "release": {
        "branches": [
          "main",
          "next"
        ]
      },
      "renovate": {
        "extends": [
          "config:js-lib",
          ":automergePatch",
          ":automergeBranch",
          ":automergePatch",
          ":automergeBranch",
          ":automergeLinters",
          ":automergeTesters",
          ":automergeTypes"
        ],
        "timezone": "Europe/Paris",
        "schedule": [
          "before 3am on Monday"
        ],
        "groupName": "all"
      },
      "gitHead": "36484528aff590e18488aee1c09dfc740e6723d7",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@1.3.1",
      "_nodeVersion": "16.10.0",
      "_npmVersion": "7.24.2",
      "dist": {
        "integrity": "sha512-JCRORl4sanw6MPcnDwoYDTqN+RdE8mS9PNQa0OUyU7kHW0ShFTjHY5/fZAe3AcpprD3r1xloFtB7tG3oLHOpPw==",
        "shasum": "71d3314a78b1d4d1c58325b977143b413a1383bb",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-1.3.1.tgz",
        "fileCount": 8,
        "unpackedSize": 24736,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIFCuFfMA/dM2K2Btr36t8p+sAu28+aKDkEcZ42lDEpzLAiAIYkS+X1a+2doNTxNpIIEOA/WcDNKFj5QEkVvdN0mDwQ=="
          }
        ]
      },
      "_npmUser": {
        "name": "vvo",
        "email": "vincent@codeagain.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent@codeagain.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_1.3.1_1634419994892_0.3377207599283474"
      },
      "_hasShrinkwrap": false
    },
    "1.3.2": {
      "name": "iron-store",
      "version": "1.3.2",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "types": "lib/index.d.ts",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "format": "prettier --write '**/*.*' && eslint . --fix",
        "lint": "prettier --check '**/*.*' && eslint .",
        "prepublishOnly": "npm run build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && npm run lint"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "prettier": {
        "trailingComma": "all"
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parser": "babel-eslint",
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended",
          "plugin:import/recommended"
        ],
        "rules": {
          "arrow-body-style": [
            "error",
            "always"
          ],
          "curly": "error",
          "import/order": [
            "error",
            {
              "newlines-between": "always"
            }
          ]
        }
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "^7.15.7",
        "@babel/core": "^7.15.8",
        "@babel/preset-env": "^7.15.8",
        "@types/jest": "^27.0.2",
        "babel-eslint": "10.1.0",
        "babel-jest": "^27.2.5",
        "eslint": "^7.32.0",
        "eslint-plugin-import": "^2.25.2",
        "eslint-plugin-jest": "^24.5.2",
        "jest": "^27.2.5",
        "jest-date-mock": "1.0.8",
        "prettier": "^2.4.1",
        "prettier-plugin-packagejson": "^2.2.13",
        "semantic-release": "^18.0.0",
        "semantic-release-cli": "^5.4.4"
      },
      "release": {
        "branches": [
          "main",
          "next"
        ]
      },
      "renovate": {
        "extends": [
          "config:js-lib",
          ":automergePatch",
          ":automergeBranch",
          ":automergePatch",
          ":automergeBranch",
          ":automergeLinters",
          ":automergeTesters",
          ":automergeTypes"
        ],
        "timezone": "Europe/Paris",
        "schedule": [
          "before 3am on Monday"
        ],
        "groupName": "all"
      },
      "gitHead": "ca3aec909e605239b2000464ac73a6a3e6507708",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@1.3.2",
      "_nodeVersion": "16.10.0",
      "_npmVersion": "7.24.2",
      "dist": {
        "integrity": "sha512-3adqPgksc8RdjLAwlIFEK/ATsI41aWyqKctYZZDGewDyUntKmmTgGDBkeTWQvsKmMoCon/zHqHc+ZUKdYq/Uow==",
        "shasum": "d8e5dc181b8e28424ea3e3a27249c80c76928910",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-1.3.2.tgz",
        "fileCount": 8,
        "unpackedSize": 24736,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDrdthTIFWe2x8SvRrc0EHrBWalfMQX/HjDMojOG7yurwIhAK1wtcX200p/n051yX6gpPysugS8mW7RxML3ytp35mlg"
          }
        ]
      },
      "_npmUser": {
        "name": "vvo",
        "email": "vincent@codeagain.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent@codeagain.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_1.3.2_1634420259615_0.2651976258172599"
      },
      "_hasShrinkwrap": false
    },
    "1.3.3": {
      "name": "iron-store",
      "version": "1.3.3",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "types": "lib/index.d.ts",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "format": "prettier --write '**/*.*' && eslint . --fix",
        "lint": "prettier --check '**/*.*' && eslint .",
        "prepublishOnly": "npm run build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && npm run lint"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "prettier": {
        "trailingComma": "all"
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parser": "babel-eslint",
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended",
          "plugin:import/recommended"
        ],
        "rules": {
          "arrow-body-style": [
            "error",
            "always"
          ],
          "curly": "error",
          "import/order": [
            "error",
            {
              "newlines-between": "always"
            }
          ]
        }
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "^7.15.7",
        "@babel/core": "^7.15.8",
        "@babel/preset-env": "^7.15.8",
        "@types/jest": "^27.0.2",
        "babel-eslint": "10.1.0",
        "babel-jest": "^27.2.5",
        "eslint": "^7.32.0",
        "eslint-plugin-import": "^2.25.2",
        "eslint-plugin-jest": "^24.5.2",
        "jest": "^27.2.5",
        "jest-date-mock": "1.0.8",
        "prettier": "^2.4.1",
        "prettier-plugin-packagejson": "^2.2.13",
        "semantic-release": "^18.0.0",
        "semantic-release-cli": "^5.4.4"
      },
      "release": {
        "branches": [
          "main",
          "next"
        ]
      },
      "renovate": {
        "extends": [
          "config:js-lib",
          ":automergePatch",
          ":automergeBranch",
          ":automergePatch",
          ":automergeBranch",
          ":automergeLinters",
          ":automergeTesters",
          ":automergeTypes"
        ],
        "timezone": "Europe/Paris",
        "schedule": [
          "before 3am on Monday"
        ],
        "groupName": "all"
      },
      "gitHead": "ce1e0b82ee3636ff9c5bb7ea6fef0e0b58b0c8ea",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@1.3.3",
      "_nodeVersion": "16.10.0",
      "_npmVersion": "7.24.2",
      "dist": {
        "integrity": "sha512-lq2ITMN8QU+aom4WedIKBjBZ35pgWuYDYRI4jOUuzcMghTNV05kPt11sruYH2/CUMeq3dwRTcmgSFT57zseTEw==",
        "shasum": "f298aae808c1100c0d28eef55528327f032dd76e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-1.3.3.tgz",
        "fileCount": 8,
        "unpackedSize": 24736,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCg3a2fWXQbDbw4gwwBd+DKfpMZBBy5WmIjzS8K9JayhwIgFe6N6GpfJuhTYeZo39FWYtHRjAqADscMEz/ldK1m8VU="
          }
        ]
      },
      "_npmUser": {
        "name": "vvo",
        "email": "vincent@codeagain.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent@codeagain.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_1.3.3_1634420913175_0.8653017435473074"
      },
      "_hasShrinkwrap": false
    },
    "1.3.4": {
      "name": "iron-store",
      "version": "1.3.4",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "types": "lib/index.d.ts",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "format": "prettier --write '**/*.*' && eslint . --fix",
        "lint": "prettier --check '**/*.*' && eslint .",
        "prepublishOnly": "npm run build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && npm run lint"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "prettier": {
        "trailingComma": "all"
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parser": "babel-eslint",
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended",
          "plugin:import/recommended"
        ],
        "rules": {
          "arrow-body-style": [
            "error",
            "always"
          ],
          "curly": "error",
          "import/order": [
            "error",
            {
              "newlines-between": "always"
            }
          ]
        }
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "^7.15.7",
        "@babel/core": "^7.15.8",
        "@babel/preset-env": "^7.15.8",
        "@types/jest": "^27.0.2",
        "babel-eslint": "10.1.0",
        "babel-jest": "^27.2.5",
        "eslint": "^7.32.0",
        "eslint-plugin-import": "^2.25.2",
        "eslint-plugin-jest": "^24.5.2",
        "jest": "^27.2.5",
        "jest-date-mock": "1.0.8",
        "prettier": "^2.4.1",
        "prettier-plugin-packagejson": "^2.2.13",
        "semantic-release": "^18.0.0",
        "semantic-release-cli": "^5.4.4"
      },
      "release": {
        "branches": [
          "main",
          "next"
        ]
      },
      "renovate": {
        "extends": [
          "config:js-lib",
          ":automergePatch",
          ":automergeBranch",
          ":automergePatch",
          ":automergeBranch",
          ":automergeLinters",
          ":automergeTesters",
          ":automergeTypes"
        ],
        "timezone": "Europe/Paris",
        "schedule": [
          "before 3am on Monday"
        ],
        "groupName": "all"
      },
      "gitHead": "1a28d8eb3a222ae7d8a2415be611657866ee3f22",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@1.3.4",
      "_nodeVersion": "16.10.0",
      "_npmVersion": "7.24.2",
      "dist": {
        "integrity": "sha512-K4X4AgeTJNaNJQHkr3HvwN6NTey3m7Wq6QhoQdiLeSqMcvFRGoydVnN7FxFoOs/KPtDn435bxmQm9QtAeLQPRQ==",
        "shasum": "65dae31381e13730e7d2ca17886d2f26f8e269e1",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-1.3.4.tgz",
        "fileCount": 8,
        "unpackedSize": 24736,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIGELeTVaqOZtKr15JeJTNaObFP+xdG92J/++cCJdp9X8AiEA7Bbz192psGAGyMq3HAjo0OPbAaOexuJkoDoiG/Vc4FE="
          }
        ]
      },
      "_npmUser": {
        "name": "vvo",
        "email": "vincent@codeagain.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent@codeagain.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_1.3.4_1634421300582_0.005607535285113485"
      },
      "_hasShrinkwrap": false
    },
    "1.3.5": {
      "name": "iron-store",
      "version": "1.3.5",
      "private": false,
      "description": "in-memory, signed and encrypted JavaScript store",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/vvo/iron-store.git"
      },
      "license": "MIT",
      "author": {
        "name": "Vincent Voyer",
        "email": "vincent@codeagain.com"
      },
      "main": "dist/",
      "types": "lib/index.d.ts",
      "scripts": {
        "build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
        "format": "prettier --write '**/*.*' && eslint . --fix",
        "lint": "prettier --check '**/*.*' && eslint .",
        "prepublishOnly": "npm run build",
        "semantic-release": "semantic-release",
        "test": "jest --coverage && npm run lint"
      },
      "babel": {
        "presets": [
          [
            "@babel/preset-env",
            {
              "targets": {
                "node": "12"
              }
            }
          ]
        ]
      },
      "prettier": {
        "trailingComma": "all"
      },
      "eslintConfig": {
        "env": {
          "es6": true,
          "jest": true,
          "node": true
        },
        "parser": "babel-eslint",
        "parserOptions": {
          "ecmaVersion": 2019,
          "sourceType": "module"
        },
        "plugins": [
          "jest"
        ],
        "extends": [
          "eslint:recommended",
          "plugin:jest/recommended",
          "plugin:import/recommended"
        ],
        "rules": {
          "arrow-body-style": [
            "error",
            "always"
          ],
          "curly": "error",
          "import/order": [
            "error",
            {
              "newlines-between": "always"
            }
          ]
        }
      },
      "jest": {},
      "dependencies": {
        "@hapi/iron": "^6.0.0",
        "clone": "^2.1.2"
      },
      "devDependencies": {
        "@babel/cli": "^7.15.7",
        "@babel/core": "^7.15.8",
        "@babel/preset-env": "^7.15.8",
        "@types/jest": "^27.0.2",
        "babel-eslint": "10.1.0",
        "babel-jest": "^27.2.5",
        "eslint": "^7.32.0",
        "eslint-plugin-import": "^2.25.2",
        "eslint-plugin-jest": "^24.5.2",
        "jest": "^27.2.5",
        "jest-date-mock": "1.0.8",
        "prettier": "^2.4.1",
        "prettier-plugin-packagejson": "^2.2.13",
        "semantic-release": "^18.0.0",
        "semantic-release-cli": "^5.4.4"
      },
      "release": {
        "branches": [
          "main",
          "next"
        ]
      },
      "renovate": {
        "extends": [
          "config:js-lib",
          ":automergePatch",
          ":automergeBranch",
          ":automergePatch",
          ":automergeBranch",
          ":automergeLinters",
          ":automergeTesters",
          ":automergeTypes"
        ],
        "timezone": "Europe/Paris",
        "schedule": [
          "before 3am on Monday"
        ],
        "groupName": "all"
      },
      "gitHead": "abb2308183528c147491f0daede1e7bf3336c228",
      "bugs": {
        "url": "https://github.com/vvo/iron-store/issues"
      },
      "homepage": "https://github.com/vvo/iron-store#readme",
      "_id": "iron-store@1.3.5",
      "_nodeVersion": "16.10.0",
      "_npmVersion": "7.24.2",
      "dist": {
        "integrity": "sha512-3RBkmVA6AZ3jezmLeX5H0lX1yS3fa90MFU9pL9vyhbpzXCRgAS7DLAfERXDPJEkT3jMZfxnVTTUwwfpB85ml7w==",
        "shasum": "62709c6381af72206d8a00ad7de76d011aeb65a4",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iron-store/-/iron-store-1.3.5.tgz",
        "fileCount": 8,
        "unpackedSize": 24735,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2wDbCRA9TVsSAnZWagAABOAP/1eMTA7loAdfUqFhCzCT\nC8l74WCq9AYSJahJlr/gZTSyfotrGp6b2VXOGJddru25h65sjBWKF2Wn/7Rz\nsfezAd5tb87PZjPIgY9Pd6nI6oYDIj3xRVZmqqAJ2JeuM9MvtG/nqksizq3U\nICEcjzBEz+a8Vu5/9h1PBsVorUAtJIIOqsrfIWoxEa9lUkbT7sElC1RUZ8px\n9XbUBiOGUb9BAq4ksLD9iEeufukNIAH20jW2Q9TYwVE7YrvhdnwJBSdhmQAX\nnBQ9yRMFBokpbShEuTUPmeLjup3dvvVNV11W+lg/BwhmsEgVj1nBETTjpY2S\n5g5xyUgPlkU6CzMekjIM93/T4YN0ewaOTp5JkSVzJDJKmQ0dgineDWbXEN7V\noVkrCJkaOpUAlaRQFiPrtLu75pJb5vsVTwB5B2w/VPnS7M+F4QLkEcmc3Db8\ndUazX5+TDk6UVj19XL2ir0hPYgvvcH72lUlwnFUVolKvikUM+O0NV2ougR+f\nZPKjbiF3ZsmlA9DLv8b/i1Sf+4pHkvoHTtX0aGknVpDGrhzdoueLdbT1x3zZ\nmlyu9895nCG555GgNttPqhi8+1iFYWtImAGxws3sOd2kSEzpgpQxHfNTFySB\nw+ypEr9+Ol1FmD2xuTbq/6ahfz7dWJxknJvG1QBf11y4xCHuGHoV3tAPttL+\nXcXn\r\n=G8XZ\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDG1iS9Ysvn2Mx2W2jPPJF0Z4YfCo1CqcwA/eHpabONJwIhAPLImWbtkozOD4pEUwdwqLpkIXduCN0jizDeQcJyFLQx"
          }
        ]
      },
      "_npmUser": {
        "name": "vvo",
        "email": "vincent@codeagain.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "vvo",
          "email": "vincent@codeagain.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iron-store_1.3.5_1634423825686_0.2362258306322944"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "iron-store",
  "time": {
    "created": "2020-03-09T10:42:13.054Z",
    "1.0.0": "2020-03-09T10:42:13.172Z",
    "modified": "2026-05-19T16:59:24.258Z",
    "1.1.0": "2020-03-10T09:40:01.177Z",
    "1.2.0": "2020-03-10T15:53:24.473Z",
    "1.3.0": "2020-04-30T14:51:17.987Z",
    "0.0.0-development": "2021-10-16T21:29:20.136Z",
    "1.3.1": "2021-10-16T21:33:15.012Z",
    "1.3.2": "2021-10-16T21:37:39.762Z",
    "1.3.3": "2021-10-16T21:48:33.368Z",
    "1.3.4": "2021-10-16T21:55:00.733Z",
    "1.3.5": "2021-10-16T22:37:05.814Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/vvo/iron-store#readme"
}