{"name":"orderedmap","version":"1.1.5","description":"Persistent ordered mapping from strings","main":"index.js","module":"index.es.js","types":"types/index.d.ts","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":"e5b9330f6f52b32a673b113ecbd6750433547c2c","_id":"orderedmap@1.1.5","_nodeVersion":"16.13.1","_npmVersion":"8.4.0","dist":{"integrity":"sha512-/fzlCGKRmfayGoI9UUXvJfc2nMZlJHW30QqEvwPvlg8tsX7jyiUSomYie6mYqx7Z9bOMGoag0H/q1PS/0PjYkg==","shasum":"4174c90b61bd7c25294932edf789f3b5677744d0","tarball":"http://registry-npm.ywwl.com/orderedmap/download/orderedmap-1.1.5.tgz","fileCount":6,"unpackedSize":13413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFKTYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiFQ//VGOr3YjBWPVkcyTNQzd9kDfgph4n8P4OCDkvmbZUcGPSSaN5\r\n+0LHY2DNm5z6+tCR0d5yPcuP125bsNloMf30fWqkJQCRIx3woRz7p0IPxVuB\r\nJ003tbGqZuwkfKzkdrJT49bJW5FL4IFmea/sxH+sXFGCg9Awx//7keSFqKxG\r\nvIAIrmfXXpv9uofvAnhQv0hk3EEWp0ljaHiZyXWYMFM+Ap3i51mECjBZwbvI\r\nvMW3GmorMf0ndW+uytJiA/XU/Xfn68rGusyri+fCj8E3SLJLniFUdXNA4EEM\r\ni8srKvr33b5KtcY29yqsPVNIhAj+BrvlomrMEormy4a6Gqp8/mL1HTHkwtEZ\r\n6hZmwnbWJC3KZTQLZsIzEo+rsews4Uw+rhks51y3B3Ao6qKWYCj2qAEZfsF6\r\nY8lDkZE0YYXiRA4OFaY8CkcvGmtdr29iN1Ryok0mRS8srb0vcFUxZlbVnssJ\r\nQTvTCfJMkMAk/LaI/DeUuIpg6WDEksdhmkyhY+P385pjWAaeuQ/OsbdrX9Yx\r\ntPHjMZPkABYiLNqXFWWW/NoakCxx1oE4oQPfO6JErM1U7cEq/5bcTgT/LxSP\r\nsxZrIUNeuqQbcridLnDEP3SXswJVh5WVS2Ue+m206SbyntbXek1yDin9R9MZ\r\nF21OcqB6c9l8gj0v1WRRLXaJz0qSPvQq9mI=\r\n=id9P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCebRrrOAZ1Mk378XIz17va6Z9EYuS2JenyyHgZ4tQveAIhAJOSVkkpZ9pc4i5PGJNDkW1BOU2yCVPD7EQ9EIoN6+uS"}],"size":3230,"noattachment":false,"key":"/orderedmap/-/orderedmap-1.1.5.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.5_1645520088052_0.8248061745114397"},"_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":1645520088169,"_cnpm_publish_time":1645520088169,"dist-tags":{"latest":"2.1.1"}}