{"name":"orderedmap","version":"1.1.0","description":"Persistent ordered mapping from strings","main":"index.js","module":"index.mjs","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":"9ed47785a424212199b4e41ea1f015410842a1f7","_id":"orderedmap@1.1.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"dist":{"integrity":"sha512-abUlPCcmyI/17BWWoUWeAbnniTFUZuczP6iowD9XMBcUoD9jRtUO6w+KXkw64TDk+iHdyDfTAjIH7mTRzhXcaw==","shasum":"dc41a147130b51e203e8523ea5ea57724af2b63d","tarball":"http://registry-npm.ywwl.com/orderedmap/download/orderedmap-1.1.0.tgz","fileCount":6,"unpackedSize":12605,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxD4aCRA9TVsSAnZWagAAsD4P/jDDPUt7TVTXTUoexD3s\npXidyTM68/Oc+J++oEWXNOMOjWtKW3MHrUNproh0bu2GY2gvnwPgPO3Bzhxk\nk+9+R5DoWIUSZQFK3fe1PrM+UHt0eq4Z9FEeReXTqO4s/PoamL8mukY4cBl6\nGF7z0sI0SoIGNbONqFP5bvny8fUA0TPEzdmzfzVjU1gG9SG+7A5wqzcThp4a\nGAiEMTvT1vC4mN8/9UFq1q7LAbNf6HMNpAaSrFOzTch4mV0p4uAWMaK5CNZI\nzlJN3nhj05cFMGwChvnV4xaZbLK1HIvZkhKApTHR5O6hbgagb18j0ZgKAzzK\n/AoZ/mjlnAe/iuk2ecBPI1naKIOTFPiSzoF/1DR8AtQjuw8ThUcQ0E/zsvbq\nxmKxut/Y0/iNjYxIiJMMc/YgbHAxCeias/wDDbbVQyGNXRHn2nzmC1D7UkWO\nrI+kaQMZXz/TgzFOwnAqkWY3z7Cp+4gOavLJxmOvV+PLykaQbrI4uo+6UpIw\nR30zUvgkySzsK5q89YamkgWO59sgLYiLahGGSZSQs19VeliOsr0XAXbOsoe4\nlYLNbdBIEHhoJ7KRDfKnBJ5sRGZjK8KevgzgnEe1AuN8DiNwEeSEbBhwNRCy\nk7AFuNerVtLidPaXB4G9/DhAQ6PqGZ7jBzee7NaUCU5kCW7STcVJOihQvgVb\nsg/C\r\n=Rz9p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQpKwQCtXjk4FL2RZ9WRtnOPy6s+nb1NHT1v3KSw68uAIhAK2WZV2/LV9+Z3v7QRRZ9VPPX4QK21Q2jVEy5CTxF/dn"}],"size":3097,"noattachment":false,"key":"/orderedmap/-/orderedmap-1.1.0.tgz"},"maintainers":[{"name":"marijn","email":"marijnh@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/orderedmap_1.1.0_1573142042419_0.34787574201785887"},"_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":1573142042556,"_cnpm_publish_time":1573142042556,"dist-tags":{"latest":"2.1.1"}}