{"name":"orderedmap","version":"1.1.3","description":"Persistent ordered mapping from strings","main":"index.js","module":"index.es.js","repository":{"type":"git","url":"git+https://github.com/marijnh/orderedmap.git"},"keywords":["persistent","map"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/marijnh/orderedmap/issues"},"homepage":"https://github.com/marijnh/orderedmap#readme","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"npm run build"},"devDependencies":{"rollup":"^1.26.3","rollup-plugin-commonjs":"^10.1.0"},"gitHead":"6382653fecf5f34a852e783025b060226dfb7b43","_id":"orderedmap@1.1.3","_nodeVersion":"16.13.1","_npmVersion":"8.4.0","dist":{"integrity":"sha512-Uf9dZGRg2Ntn/V+tzn8+g/vriTj1bSdq4NJvAgUxMdwz2YRzz/Pcvi3KjfIvCRLF5kMQ1XwCAI+qmMMpdsUJEg==","shasum":"bd0e2e0779ec505089fa1a2a5b12b7c8cf34d6a4","tarball":"http://registry-npm.ywwl.com/orderedmap/download/orderedmap-1.1.3.tgz","fileCount":7,"unpackedSize":13307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEMuiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIbxAAotN/FwLIMGrYsLS+NkpHRvc+EVVbQyhWqpU3NVioxryRmEiW\r\nYrkZfMcOZHdt9qTBMw/s3lVh0iMDtlJXSiA8x2CKQ0BwGog3yv8/QMYIQx74\r\nUvG2LKSgkOuDAv+v84/ekGHWWfmXr+0R7MYrEmGRAHwl7YMLqjaZD0dGgqXN\r\n10Wq8dAtdrmKYi7Mwn+JOcTBjQgvlIujWA015IPeD5TT2sN0vC9jCVFSa63L\r\n88j1CuiDUmZ3WV8OWB99SI3/0D7UdV9q+YOtuM4prwbPQEox4Dda6QXp3lLy\r\nMr82dFUC1Duj9wDpuW+Ql+uvaLloXdTIba3VbcQ5OKdT0E2eXXMHQ6dDG7Gs\r\nW/y5teLMwVDumw79suAueV+ALF+hlu3UllpINyZsxpJhL4UE/8ktF7KhgzJO\r\nBiJdApC7Vftd2i3SQAMLGJ+n56WIw2MVMo6hMagEY8gzep85Ad7r0G4Jlkg+\r\n5t5x9z8xTrPC+t8Y9m27LiAHNXE+1S8W809+VgvmjzvSPg5Eu7zk4dH/AQsm\r\nCkgnkJ7cyKcg+XZ2J1hYDxlo2wVV6r6gsJwjqkdd3dRcj4ZFHNfhoQebd/qE\r\nQYs1G40C+GrZHNYR9ZLn6NlQ+MoijXfczaxPUkCGI0Vgz4RSS/jEpxmR5rjd\r\nD19eMV8a//hENzuwE0PaX+7Nu7djQha4Ko0=\r\n=aem0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYc5Z1gFlG0Tc81Bw3+ByX83BH0gcIfg4S2fxbueNyfAiBQXJXquBQlm4ZGJMKB7w8qIo6PV/yFlGISENbAKTC+AA=="}],"size":3225,"noattachment":false,"key":"/orderedmap/-/orderedmap-1.1.3.tgz"},"_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"directories":{},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/orderedmap_1.1.3_1645267874695_0.8537503662175265"},"_hasShrinkwrap":false,"readme":"# OrderedMap\n\nPersistent data structure representing an ordered mapping from strings\nto values, with some convenient update methods.\n\nThis is not an efficient data structure for large maps, just a minimal\nhelper for cleanly creating and managing small maps in a way that\nmakes their key order explicit and easy to think about.\n\nLicense: MIT\n\n## Reference\n\nThe exported value from this module is the class `OrderedMap`,\ninstances of which represent a mapping from strings to arbitrary\nvalues.\n\n**`OrderedMap.from`**`(value: ?Object | OrderedMap) → OrderedMap`  \nReturn a map with the given content. If null, create an empty map. If\ngiven an ordered map, return that map itself. If given an object,\ncreate a map from the object's properties.\n\n### Methods\n\nInstances of `OrderedMap` have the following methods and properties:\n\n**`get`**`(key: string) → ?any`  \nRetrieve the value stored under `key`, or return undefined when\nno such key exists.\n\n**`update`**`(key: string, value: any, newKey: ?string) → OrderedMap`  \nCreate a new map by replacing the value of `key` with a new\nvalue, or adding a binding to the end of the map. If `newKey` is\ngiven, the key of the binding will be replaced with that key.\n\n**`remove`**`(key: string) → OrderedMap`  \nReturn a map with the given key removed, if it existed.\n\n**`addToStart`**`(key: string, value: any) → OrderedMap`  \nAdd a new key to the start of the map.\n\n**`addToEnd`**`(key: string, value: any) → OrderedMap`  \nAdd a new key to the end of the map.\n\n**`addBefore`**`(place: string, key: value: string, value: any) → OrderedMap`  \nAdd a key after the given key. If `place` is not found, the new\nkey is added to the end.\n\n**`forEach`**`(f: (key: string, value: any))`  \nCall the given function for each key/value pair in the map, in\norder.\n\n**`prepend`**`(map: Object | OrderedMap) → OrderedMap`  \nCreate a new map by prepending the keys in this map that don't\nappear in `map` before the keys in `map`.\n\n**`append`**`(map: Object | OrderedMap) → OrderedMap`  \nCreate a new map by appending the keys in this map that don't\nappear in `map` after the keys in `map`.\n\n**`subtract`**`(map: Object | OrderedMap) → OrderedMap`  \nCreate a map containing all the keys in this map that don't\nappear in `map`.\n\n**`toObject`**`() -> Object`\nReturn an object that has the same key/value pairs as the `map`.\n\n**`size`**`: number`  \nThe amount of keys in this map.\n","publish_time":1645267874822,"_cnpm_publish_time":1645267874822,"dist-tags":{"latest":"2.1.1"}}