{
  "_id": "@webreflection/idb-map",
  "maintainers": [
    {
      "name": "webreflection",
      "email": "andrea.giammarchi@gmail.com"
    }
  ],
  "keywords": [
    "IndexedDB",
    "Map"
  ],
  "dist-tags": {
    "latest": "0.3.2"
  },
  "author": {
    "name": "Andrea Giammarchi"
  },
  "_rev": "8-32ff385bbfa48764e73306a954d40d43",
  "description": "Async IndexedDB based Map",
  "readme": "# @webreflection/idb-map\n\n<sup>**Social Media Photo by [delfi de la Rua](https://unsplash.com/@delfidelarua7) on [Unsplash](https://unsplash.com/)**</sup>\n\nAn IndexedDB based Map with an asynchronous interface.\n\n\n## IDBMap API\n\nAn *IDBMap* instance implements all [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) methods or accessors except these are all **asynchroonus**.\n\nAn *IDBMap* also extends [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget) too, so `dispatchEvent` is also available, among others. Handled events are by default `abort`, `close`, `error` and `versionchange`.\n\nThe *IDBMap* **constructor** is the only main different *API* compared to *Map*:\n\n  * it accepts a database's `name` suffix as *string*. The DB will be called `'IDBMap/${name}'`. The storage name used for this *db* will be *entries*. An *empty* string is also a valid name but please be aware of naming collisions\n  * it accepts an optional `options` object, currently to either override transactions' **durability**, where its default value is `'default'`, or to use a different database **prefix** name which default value is `'IDBMap'`\n\n```ts\ntype IDBMapOptions = {\n    durability?: 'strict' | 'relaxed' | 'default';\n    prefix?: string;\n}\n\nclass IDBMap extends EventTarget implements Map {\n  constructor(\n    name:string,\n    options:IDBMapOptions = { durability: 'default', prefix: 'IDBMap' }\n  ):IDBMap\n\n  // the only extra method not present in Map or EventTarget\n  close():Promise<void>\n}\n```\n\n### Example\n\n```js\nimport IDBMap from '@webreflection/idb-map';\n\n// create an async map with a generic storage name\nconst idbMap = new IDBMap('my-storage-name');\n\n// check any Map property by awaiting it\nconsole.log(await idbMap.size);\nconsole.log(await idbMap.has('nope'));\n\n// optional helpers for buffered data\nconst encoder = new TextEncoder;\nconst decoder = new TextDecoder;\n\n// set any IDB compatible value\nawait idbMap.set('test.txt', 'test value');\nconsole.log(await idbMap.has('test.txt'));\nawait idbMap.set('other.txt', encoder.encode('other value'));\n\n// get any IDB stored value\nconsole.log(await idbMap.get('test.txt'));\nconsole.log(decoder.decode(await idbMap.get('other.txt')));\n\n// retrieve any other async Map API method\nconsole.log(await idbMap.keys());\nconsole.log(await idbMap.size);\nfor (const entry of await idbMap.entries())\n    console.log(entry);\n\n// or remove a single key\nawait idbMap.delete('other.txt');\nconsole.log(await idbMap.keys());\nconsole.log(await idbMap.size);\n\n// or clear the whole thing\nawait idbMap.clear();\nconsole.log(await idbMap.keys());\nconsole.log(await idbMap.size);\n\n// eventually close it\nawait idbMap.close();\n```\n\n- - -\n\n## IDBMapSync API\n\nThe `idb-map/sync` export returns an instance of *Map* (no *EventTarget*) with only a `sync()` extra method that is needed to be awaited on bootstrap or, if many changes are performed, before closing the thread.\n\nIts content and methods are entirely loaded into *RAM* so it's less efficient in that regard but surely easier to both handle and reason about plus it's definitively faster than the fully async version.\n\n```js\nimport IDBMapSync from '@webreflection/idb-map/sync';\n\n// create an async map with a generic storage name\nconst idbMap = new IDBMapSync('my-storage-name');\n\n// await to populate it on bootstrap\nawait idbMap.sync();\n\n// check any Map property by awaiting it\nconsole.log(idbMap.size);\nconsole.log(idbMap.has('nope'));\n\n// optional helpers for buffered data\nconst encoder = new TextEncoder;\nconst decoder = new TextDecoder;\n\n// set any IDB compatible value\nidbMap.set('test.txt', 'test value');\nconsole.log(idbMap.has('test.txt'));\nidbMap.set('other.txt', encoder.encode('other value'));\n\n// get any IDB stored value\nconsole.log(idbMap.get('test.txt'));\nconsole.log(decoder.decode(idbMap.get('other.txt')));\n\n// retrieve any other async Map API method\nconsole.log(idbMap.keys());\nconsole.log(idbMap.size);\nfor (const entry of idbMap.entries())\n    console.log(entry);\n\n// or remove a single key\nidbMap.delete('other.txt');\nconsole.log(idbMap.keys());\nconsole.log(idbMap.size);\n\n// or clear the whole thing\nidbMap.clear();\nconsole.log(idbMap.keys());\nconsole.log(idbMap.size);\n\n// eventually sync it before exiting\nawait idbMap.sync();\n```\n\n- - -\n\n\n### Background / Goal / Why\n\nThere are other projects with a similar goal, most popular or notable is [idb-keyval](https://www.npmjs.com/package/idb-keyval), but ...\n\n  * there is no familiar *API* around this topic, everyone offering \"*easy IndexedDB*\" is kinda proposing a new *API*\n  * there is nothing more similar than a *JS*' [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) to actually store *key / value* pairs\n  * the *Map* *API* is nothing new to learn, here the *IDBMap* is just about the same except it's inevitably *asynchronous* ... but ...\n    * it is still possible via [coincident](https://github.com/WebReflection/coincident#readme) to have this transparently synchronous from a worker (if that's your cup of tea), making the *Map* a 1:1 familiar primitive that will persist its data in user's space\n  * the *IDBMap* also extends [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), forwarding internal events when/if needed\n  * the *IDBMap* adds a `.close()` asynchronous method to ensure a db has been successfully closed\n\nThat's pretty much it; you already know this module and the only different thing is the way an *IDBMap* is initialized.\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/WebReflection/idb-map.git"
  },
  "bugs": {
    "url": "https://github.com/WebReflection/idb-map/issues"
  },
  "license": "MIT",
  "versions": {
    "0.0.4": {
      "name": "@webreflection/idb-map",
      "version": "0.0.4",
      "keywords": [
        "IndexedDB",
        "Map"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "MIT",
      "_id": "@webreflection/idb-map@0.0.4",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "dist": {
        "shasum": "c0c2ddbbd62ba706cb2f3f23c7fd054fa271e9e0",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@webreflection/idb-map/-/idb-map-0.0.4.tgz",
        "fileCount": 4,
        "integrity": "sha512-V92db9KN8NuCTMHJbjJDasQhPDg16y9dQycfUr3h/p8ezNr8C/dkhQbjVXAEttg+CFUje755bBQL3imXCSmzvg==",
        "signatures": [
          {
            "sig": "MEYCIQDv2m5jEaB0/sMCZHG0+SOYL+ybpo36rKSU2aEn3HcbLQIhAIOyXrnqYwBmW0HXkxqe+aS1OaDtLN21fiS+7wi3+m+3",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 6948
      },
      "main": "index.js",
      "type": "module",
      "module": "index.js",
      "gitHead": "9c97a85495af0ca6d1603c79ce5007ff222f29ac",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "_npmVersion": "10.8.1",
      "description": "Async IndexedDB based Map",
      "directories": {},
      "_nodeVersion": "22.3.0",
      "_hasShrinkwrap": false,
      "_npmOperationalInternal": {
        "tmp": "tmp/idb-map_0.0.4_1718179169363_0.2780165031432291",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.1.0": {
      "name": "@webreflection/idb-map",
      "version": "0.1.0",
      "keywords": [
        "IndexedDB",
        "Map"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "MIT",
      "_id": "@webreflection/idb-map@0.1.0",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/idb-map#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/idb-map/issues"
      },
      "dist": {
        "shasum": "d4a01e4a4085d206bbe07fce95a36a3620f8d6b0",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@webreflection/idb-map/-/idb-map-0.1.0.tgz",
        "fileCount": 5,
        "integrity": "sha512-iNkM42Qes0gu/iucM8FPcBMLFo6T5P2V+EZYcgshQeqa+gE42P1rEpl1Ounf1O880UnjwQU6dCF73gtF6StY4w==",
        "signatures": [
          {
            "sig": "MEYCIQCuNAs6Stt2X65aJpT2LW892KlC8lWMxMA9nnKIUmbyRQIhANaN7Cg2zBx9Yt4whHTqpXAsc7UCP6Cw8AHJeaIUcnn8",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 11510
      },
      "main": "index.js",
      "type": "module",
      "module": "index.js",
      "gitHead": "0e50c991c3675827880b81e9b3c3f759e95485a4",
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/idb-map.git",
        "type": "git"
      },
      "_npmVersion": "10.8.1",
      "description": "Async IndexedDB based Map",
      "directories": {},
      "_nodeVersion": "22.3.0",
      "_hasShrinkwrap": false,
      "_npmOperationalInternal": {
        "tmp": "tmp/idb-map_0.1.0_1718185104513_0.6659788832859883",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.1.1": {
      "name": "@webreflection/idb-map",
      "version": "0.1.1",
      "keywords": [
        "IndexedDB",
        "Map"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "MIT",
      "_id": "@webreflection/idb-map@0.1.1",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/idb-map#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/idb-map/issues"
      },
      "dist": {
        "shasum": "1a577b193ba17b7fc8b9ebcdf22e4de4689c8932",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@webreflection/idb-map/-/idb-map-0.1.1.tgz",
        "fileCount": 5,
        "integrity": "sha512-sfGoquObwzxdd3kSys3X3pX20xsBzRKBkgVwF3aW7LuDNsZeNEsnmeXscCgNAQ0/zRkVypGuC4AMpN4bGtCSJg==",
        "signatures": [
          {
            "sig": "MEUCIAOKoT8FulYGJxPbLxptib1sgg13fV2WJyfrSKbwaUeKAiEA7MfWuP6ZZdNqHr30f/5F4ourXd8/f5DHp822GbSfnTQ=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 11640
      },
      "main": "index.js",
      "type": "module",
      "module": "index.js",
      "gitHead": "45f0548967c3caa8983459bced4b9b4ccd46a38b",
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/idb-map.git",
        "type": "git"
      },
      "_npmVersion": "10.8.1",
      "description": "Async IndexedDB based Map",
      "directories": {},
      "_nodeVersion": "22.3.0",
      "_hasShrinkwrap": false,
      "_npmOperationalInternal": {
        "tmp": "tmp/idb-map_0.1.1_1718186600662_0.5216052592155289",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.1.2": {
      "name": "@webreflection/idb-map",
      "version": "0.1.2",
      "keywords": [
        "IndexedDB",
        "Map"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "MIT",
      "_id": "@webreflection/idb-map@0.1.2",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/idb-map#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/idb-map/issues"
      },
      "dist": {
        "shasum": "76fb6af1930936a3c6bef627776e15f02056331c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@webreflection/idb-map/-/idb-map-0.1.2.tgz",
        "fileCount": 5,
        "integrity": "sha512-+M+mpEiWz/bmrbVsPabAZ6twNMNde15auqq8wpRlHzriEsp+bpF+IxU5DpM9GILiPVQnngO2zhK5ORBU28XGjA==",
        "signatures": [
          {
            "sig": "MEQCIHnzodKo11QWgMg9gXczyZkxUctp6T6HLg4Yn7Hd8wspAiBrfDhD12Z4oWuLSMbIh0wYoBg9CltICCdgozfSXUTOmQ==",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 11502
      },
      "main": "index.js",
      "type": "module",
      "module": "index.js",
      "gitHead": "8acc74b9e02c3979e8f4033042d66b815ad22c4e",
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/idb-map.git",
        "type": "git"
      },
      "_npmVersion": "10.8.1",
      "description": "Async IndexedDB based Map",
      "directories": {},
      "_nodeVersion": "22.3.0",
      "_hasShrinkwrap": false,
      "_npmOperationalInternal": {
        "tmp": "tmp/idb-map_0.1.2_1718189472396_0.14748004012163585",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.1.3": {
      "name": "@webreflection/idb-map",
      "version": "0.1.3",
      "keywords": [
        "IndexedDB",
        "Map"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "MIT",
      "_id": "@webreflection/idb-map@0.1.3",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/idb-map#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/idb-map/issues"
      },
      "dist": {
        "shasum": "bf3a77f422f5f07c3276eefdcf0ae1ba0a834511",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@webreflection/idb-map/-/idb-map-0.1.3.tgz",
        "fileCount": 5,
        "integrity": "sha512-7lTEpXDgpy9xueW4NSNkBHgqedz/dlGgtwTZa4fRMKWJKcnC9cORVlXwV7qNyYYKarT8gpB1+wv5UNBYhjgc8w==",
        "signatures": [
          {
            "sig": "MEUCIQCg+cCyW5RaasR9ETpc6uErkQ36jlw++JVOCNp2GlKxQgIgbycOxxIdF1ev3vtRlSnoddrX+Slc7wXP6IoNkKEEJqA=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 11517
      },
      "main": "index.js",
      "type": "module",
      "module": "index.js",
      "gitHead": "824bad1ee0261232f6071ad5e7e112b8b3da5ea4",
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/idb-map.git",
        "type": "git"
      },
      "_npmVersion": "10.8.1",
      "description": "Async IndexedDB based Map",
      "directories": {},
      "_nodeVersion": "22.3.0",
      "_hasShrinkwrap": false,
      "_npmOperationalInternal": {
        "tmp": "tmp/idb-map_0.1.3_1718198612655_0.3522834234223078",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.2.0": {
      "name": "@webreflection/idb-map",
      "version": "0.2.0",
      "keywords": [
        "IndexedDB",
        "Map"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "MIT",
      "_id": "@webreflection/idb-map@0.2.0",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/idb-map#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/idb-map/issues"
      },
      "dist": {
        "shasum": "28b42a0a60b8e7252f8cedf0bdd736a620be7dd0",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@webreflection/idb-map/-/idb-map-0.2.0.tgz",
        "fileCount": 5,
        "integrity": "sha512-nf00CfBiv83iF2B/wT1bAOxTaBmG/1Q3dhmATLOAi3yMFE975MMK0tv2KP+8LN+XZhK/pOV0DqOo8oPGUIBegQ==",
        "signatures": [
          {
            "sig": "MEUCIGYt5Tk5T+A4VJWkIBY49huqqylPg9oJbu+OaUpfKUMXAiEAhm37Uh0E8ghNEjJPQjEA9J5O9fX1m6FOcTN8chdzR2E=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 14818
      },
      "main": "index.js",
      "type": "module",
      "module": "index.js",
      "exports": {
        ".": {
          "import": "./index.js",
          "default": "./index.cjs"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "1964c5d83d74c059e2e4b214b908ec4df2e28f8a",
      "scripts": {
        "build": "ascjs --no-default index.js index.cjs"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/idb-map.git",
        "type": "git"
      },
      "_npmVersion": "10.8.1",
      "description": "Async IndexedDB based Map",
      "directories": {},
      "_nodeVersion": "22.3.0",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "ascjs": "^6.0.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/idb-map_0.2.0_1718706086283_0.37958899327943296",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.3.0": {
      "name": "@webreflection/idb-map",
      "version": "0.3.0",
      "keywords": [
        "IndexedDB",
        "Map"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "MIT",
      "_id": "@webreflection/idb-map@0.3.0",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/idb-map#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/idb-map/issues"
      },
      "dist": {
        "shasum": "028f035ea587287f59795451fa78dc793a0b1757",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@webreflection/idb-map/-/idb-map-0.3.0.tgz",
        "fileCount": 7,
        "integrity": "sha512-3J/nQLAk3X2WNc+ryQ4yQgD5DqMfVTzJQXHv+5pGP7QL1FZ67WbKGp2aanrDM5GqrKFoHCCTNnoveq5R6v+kag==",
        "signatures": [
          {
            "sig": "MEUCIBGmwsme5MxP7JGdf1dyi9/yttnkGnMsQoLHToX4AhiXAiEAg7mqocmt3LHzBK0y3hmMOf5MUsV7mRU2fEcpC5txheQ=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 18036
      },
      "main": "index.js",
      "type": "module",
      "module": "index.js",
      "exports": {
        ".": {
          "import": "./index.js",
          "default": "./index.cjs"
        },
        "./sync": {
          "import": "./sync.js",
          "default": "./sync.cjs"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "d57a5c97983485700c87216b71a5a68c1038a5c3",
      "scripts": {
        "build": "npm run build:index && npm run build:sync",
        "build:sync": "ascjs --no-default sync.js sync.cjs",
        "build:index": "ascjs --no-default index.js index.cjs"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/idb-map.git",
        "type": "git"
      },
      "_npmVersion": "10.8.1",
      "description": "Async IndexedDB based Map",
      "directories": {},
      "_nodeVersion": "22.3.0",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "ascjs": "^6.0.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/idb-map_0.3.0_1718720970841_0.10052896727880722",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.3.1": {
      "name": "@webreflection/idb-map",
      "version": "0.3.1",
      "keywords": [
        "IndexedDB",
        "Map"
      ],
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "MIT",
      "_id": "@webreflection/idb-map@0.3.1",
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "homepage": "https://github.com/WebReflection/idb-map#readme",
      "bugs": {
        "url": "https://github.com/WebReflection/idb-map/issues"
      },
      "dist": {
        "shasum": "a0b2eb26f36cdcf75762682dfc3b2020526949ad",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@webreflection/idb-map/-/idb-map-0.3.1.tgz",
        "fileCount": 7,
        "integrity": "sha512-lRCanqwR7tHHFohJHAMSMEZnoNPvgjcKr0f5e4y+lTJA+fctT61EZ+f5pT5/+8+wlSsMAvXjzfKRLT6o9aqxbA==",
        "signatures": [
          {
            "sig": "MEYCIQD3GCBX6v3AFWyHIWmPIO2K0358hRtEldPo+lNMBsa6iAIhAJ5opH6UFiKewUoyYovs7bobL+ZwbkZirR4JzsyQa/Rs",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 18084
      },
      "main": "index.js",
      "type": "module",
      "module": "index.js",
      "exports": {
        ".": {
          "import": "./index.js",
          "default": "./index.cjs"
        },
        "./sync": {
          "import": "./sync.js",
          "default": "./sync.cjs"
        },
        "./package.json": "./package.json"
      },
      "gitHead": "1c4e24af596353153186e96edb90e457fb9364ca",
      "scripts": {
        "build": "npm run build:index && npm run build:sync",
        "build:sync": "ascjs --no-default sync.js sync.cjs && sed -i 's/index\\.js/index\\.cjs/' sync.cjs",
        "build:index": "ascjs --no-default index.js index.cjs"
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "repository": {
        "url": "git+https://github.com/WebReflection/idb-map.git",
        "type": "git"
      },
      "_npmVersion": "10.8.1",
      "description": "Async IndexedDB based Map",
      "directories": {},
      "_nodeVersion": "22.3.0",
      "_hasShrinkwrap": false,
      "devDependencies": {
        "ascjs": "^6.0.3"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/idb-map_0.3.1_1718721295291_0.41499736390355335",
        "host": "s3://npm-registry-packages"
      }
    },
    "0.3.2": {
      "name": "@webreflection/idb-map",
      "version": "0.3.2",
      "type": "module",
      "main": "index.js",
      "module": "index.js",
      "keywords": [
        "IndexedDB",
        "Map"
      ],
      "scripts": {
        "build": "npm run build:index && npm run build:sync",
        "build:index": "ascjs --no-default index.js index.cjs",
        "build:sync": "ascjs --no-default sync.js sync.cjs && sed -i 's/index\\.js/index\\.cjs/' sync.cjs"
      },
      "exports": {
        ".": {
          "import": "./index.js",
          "default": "./index.cjs"
        },
        "./sync": {
          "import": "./sync.js",
          "default": "./sync.cjs"
        },
        "./package.json": "./package.json"
      },
      "author": {
        "name": "Andrea Giammarchi"
      },
      "license": "MIT",
      "description": "Async IndexedDB based Map",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/WebReflection/idb-map.git"
      },
      "bugs": {
        "url": "https://github.com/WebReflection/idb-map/issues"
      },
      "homepage": "https://github.com/WebReflection/idb-map#readme",
      "devDependencies": {
        "ascjs": "^6.0.3"
      },
      "_id": "@webreflection/idb-map@0.3.2",
      "gitHead": "353bdba0a6acea59fa181ae34405fe19ac67990d",
      "_nodeVersion": "22.9.0",
      "_npmVersion": "10.8.3",
      "dist": {
        "integrity": "sha512-VLBTx6EUYF/dPdLyyjWWKxQmTWnVXTT1YJekrJUmfGxBcqEVL0Ih2EQptNG/JezkTYgJ0uSTb0yAum/THltBvQ==",
        "shasum": "ddf69863acf2b71b03b542f60473ce5324b71fbb",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@webreflection/idb-map/-/idb-map-0.3.2.tgz",
        "fileCount": 7,
        "unpackedSize": 18236,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQC2/dDv5lU5iriK/haqRI6nTux7jUeWx5ct/IK7U5gumAIgSeNZzZYlRx6wE5V0D9EEbDhNWxA7AIuuFtDgq0G51I0="
          }
        ]
      },
      "_npmUser": {
        "name": "webreflection",
        "email": "andrea.giammarchi@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "webreflection",
          "email": "andrea.giammarchi@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/idb-map_0.3.2_1727869195602_0.8589738329046037"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "@webreflection/idb-map",
  "time": {
    "created": "2024-06-12T07:59:29.211Z",
    "modified": "2026-05-06T08:26:02.031Z",
    "0.0.4": "2024-06-12T07:59:29.514Z",
    "0.1.0": "2024-06-12T09:38:24.634Z",
    "0.1.1": "2024-06-12T10:03:20.819Z",
    "0.1.2": "2024-06-12T10:51:12.552Z",
    "0.1.3": "2024-06-12T13:23:32.802Z",
    "0.2.0": "2024-06-18T10:21:26.432Z",
    "0.3.0": "2024-06-18T14:29:31.014Z",
    "0.3.1": "2024-06-18T14:34:55.485Z",
    "0.3.2": "2024-10-02T11:39:55.805Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/WebReflection/idb-map#readme"
}