{"_id":"expiry-map","_rev":"5-2cdc4cee6be43ffe2a603c7cd96ded05","name":"expiry-map","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"expiry-map","version":"1.0.0","description":"A Map implementation with expirable items","license":"MIT","repository":{"type":"git","url":"git+https://github.com/SamVerschueren/expiry-map.git"},"author":{"name":"Sam Verschueren","email":"sam.verschueren@gmail.com","url":"github.com/SamVerschueren"},"engines":{"node":">=6"},"scripts":{"prepublishOnly":"npm run build","pretest":"npm run build -- --sourceMap","test":"npm run lint && nyc ava dist/test.js","lint":"tslint --format stylish --project .","build":"npm run clean && tsc","clean":"del-cli dist"},"files":["dist/index.js","dist/index.d.ts"],"keywords":["map","cache","caching","ttl","expire","expiring","expiry"],"devDependencies":{"@types/delay":"^2.0.1","@types/node":"^10.5.8","ava":"^0.25.0","codecov":"^3.0.4","del-cli":"^1.1.0","delay":"^3.0.0","nyc":"^12.0.2","tslint":"^5.10.0","tslint-xo":"^0.8.0","typescript":"^3.0.1"},"typings":"dist/index.d.ts","sideEffects":false,"nyc":{"exclude":["dist/test.js"]},"gitHead":"542361d9ec1e972497083d30e00998a0978a502f","bugs":{"url":"https://github.com/SamVerschueren/expiry-map/issues"},"homepage":"https://github.com/SamVerschueren/expiry-map#readme","_id":"expiry-map@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"samverschueren","email":"sam.verschueren@gmail.com"},"dist":{"integrity":"sha512-a/QtQMu6CFP74tVNoLV3XarBsL+GqQPcKOup9uukvyz13F3ZW4SPBxbGOrMMqpq6rFFW+T+dzd5VMPDntlLbXA==","shasum":"7126e5151a9788747c849492737a9186ff07dda7","tarball":"https://registry.npmjs.org/expiry-map/-/expiry-map-1.0.0.tgz","fileCount":5,"unpackedSize":6265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcrTeCRA9TVsSAnZWagAAGLgP+wTxPRCMVLTwzXDzkKtB\ns1GvLH1EWJcIjYKYJ7NWzD7r+HeYdk/oSHHH23zjDf0sAYgZHh+hmprikYPU\n1IZwgwmrMF3kg49JQ1BsoVgeLxWOpr9TZrMLhCt91wJNlGLubEc1+wrw02Yg\npQ4+BYwQdMUxISU34GHLLQhcmmcrmunld31Td9fw12AfA7CqQIFRktFVbqAS\n9rgztnzlYw4Rqz2GbJWg2w0QGTpSVpqMqYzXmOzZBoVwx6jXdo+OKYJan1uo\nZJ0nwLXxgckGkwH16wd949MVtmge1TrykqAV1PC5wlMQwOpzamEM2SVnqdGR\nTZh9q23ajZqxTgAXhvN6EuSAVogpHIddQpF/6Oyg9n6RgpxDJIO8ERPUJiRm\nIyn7F82QTgkBoReZU+7OqQwpggZS+Ins1q8tlG94PxHfOJgB8xiVqGyXjb40\nVL8LrHfBM8YE9D5pYNZoBJCKFmYZQYleMMPjWktlAXvL5x1O1XzCvdwnBGZO\nqnMRwMvXe6Zb+jad7nVEr9Uwpu9xoTsydEVnZoo7mu2XwmAB+qhg03IgDA9f\nTgPZKmR9i+tcKiFkprRPwgBBnUVL9xxv38ZkHPRqdlwnLDmlr8BjO93PZRzA\nO+aWKb4KefAwOTiy5kRaKYjyzi+bXdMAwW5AiGxFwASK7QGVb4OS0aa5FRK4\njHcm\r\n=Fk5Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOevwwBrfUPEq0YPkKA9x2NU/WW3f0WP3bQb3n3seiVAiEAkmVOHlS4372BTwflQ7FbPiIiYy51GZXatPSCpg4obQA="}]},"maintainers":[{"name":"samverschueren","email":"sam.verschueren@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expiry-map_1.0.0_1534244061626_0.46024323193988237"},"_hasShrinkwrap":false},"1.0.1":{"name":"expiry-map","version":"1.0.1","description":"A Map implementation with expirable items","license":"MIT","repository":{"type":"git","url":"git+https://github.com/SamVerschueren/expiry-map.git"},"author":{"name":"Sam Verschueren","email":"sam.verschueren@gmail.com","url":"github.com/SamVerschueren"},"main":"dist/index.js","engines":{"node":">=6"},"scripts":{"prepublishOnly":"npm run build","pretest":"npm run build -- --sourceMap","test":"npm run lint && nyc ava dist/test.js","lint":"tslint --format stylish --project .","build":"npm run clean && tsc","clean":"del-cli dist"},"files":["dist/index.js","dist/index.d.ts"],"keywords":["map","cache","caching","ttl","expire","expiring","expiry"],"devDependencies":{"@types/delay":"^2.0.1","@types/node":"^10.5.8","ava":"^0.25.0","codecov":"^3.0.4","del-cli":"^1.1.0","delay":"^3.0.0","nyc":"^12.0.2","tslint":"^5.10.0","tslint-xo":"^0.8.0","typescript":"^3.0.1"},"typings":"dist/index.d.ts","sideEffects":false,"nyc":{"exclude":["dist/test.js"]},"gitHead":"1270b620f5893ce860074e64ea11957d58aae3b1","bugs":{"url":"https://github.com/SamVerschueren/expiry-map/issues"},"homepage":"https://github.com/SamVerschueren/expiry-map#readme","_id":"expiry-map@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"samverschueren","email":"sam.verschueren@gmail.com"},"dist":{"integrity":"sha512-sWlcO8RSQX3IodEP+Md92bPC0GbCx+LaMXOdKd7QAHW/DaJuyHceSadiJ9nuchy4CqYLeesMTuMOP6ntICi6MQ==","shasum":"c5395ee284d57552dec68274da34989861349f7b","tarball":"https://registry.npmjs.org/expiry-map/-/expiry-map-1.0.1.tgz","fileCount":5,"unpackedSize":6290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbctjoCRA9TVsSAnZWagAAyfkP/1OLmH0e6d3jkWkudoBr\noBworjHVUHdKHrmtnQZZYfrN21lFvL3X1FYNFP9jNRVulsrtnfRr59tx81zq\nPFez5LnCsb/0/LQCfOVl0HipUNtBJhkQvsyPYIegrimsVwZz1I0mBd8xyHWi\ni1A71Xw0T/hgjfIQLboK9FNM26Q9zLYrd0KJ/OMMkB1o7BdqBoMAExhFARG5\nGpxoyJmu1GEOiw4kU2QVrSz8HipHc4Am1jeVtm4v4etuKkecZOASmQG8XupU\npk7wApdcWMGt2lKCMN/9D+x5c9r6cLSRRnt0wDHceUzq8GGC4ZTc5ngq1S0p\nKXuOwdfzvbhhZxjpXMZJFZk/TRTLqEwgRc/E+mhwP/SaH+S/FznFgo3ocVNr\nIgEdpR/vKp/lLYMBzpxFUrPB56ZVYUPU0GVQMswP6bskMSQMIcPDdwgDoKs0\nS3hdQVa04VZkFfPO3D1l8c/5ByVH7H088VBN6+zxEnUt0VgbpTvG3LhT2jKW\nGUZJxQUJx5YKb5Kr2BSfYF6nJWvAn7ysmpv0eFWA+1QZabzGLed4n8T1hrky\nBsCdmtjDPIXk57lrnE4xamryt9WKjl/BY6MKikEAxZU7oOD+JJxaled4Byu/\ntzmo6BeDv/MpO605b4iXo9wjTf1r4zYDhhCYcvXJjFJLgYmDquDd7WKEQT/l\nwqcu\r\n=FF39\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBAh9Ih07U1by8EWvRWO7ear8qKhfolHvKbcJInCK9IMAiBlDBfOkAwbMphzKEppjv60dsUcHUPd2qyFl548hDC+kg=="}]},"maintainers":[{"name":"samverschueren","email":"sam.verschueren@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expiry-map_1.0.1_1534253288005_0.2864512175135887"},"_hasShrinkwrap":false},"1.0.2":{"name":"expiry-map","version":"1.0.2","description":"A Map implementation with expirable items","license":"MIT","repository":{"type":"git","url":"git+https://github.com/SamVerschueren/expiry-map.git"},"author":{"name":"Sam Verschueren","email":"sam.verschueren@gmail.com","url":"github.com/SamVerschueren"},"main":"dist/index.js","engines":{"node":">=6"},"scripts":{"prepublishOnly":"npm run build","pretest":"npm run build -- --sourceMap","test":"npm run lint && nyc ava dist/test.js","lint":"tslint --format stylish --project .","build":"npm run clean && tsc","clean":"del-cli dist"},"files":["dist/index.js","dist/index.d.ts"],"keywords":["map","cache","caching","ttl","expire","expiring","expiry"],"devDependencies":{"@types/delay":"^2.0.1","@types/node":"^10.5.8","ava":"^0.25.0","codecov":"^3.0.4","del-cli":"^1.1.0","delay":"^3.0.0","nyc":"^12.0.2","tslint":"^5.10.0","tslint-xo":"^0.8.0","typescript":"^3.0.1"},"typings":"dist/index.d.ts","sideEffects":false,"nyc":{"exclude":["dist/test.js"]},"gitHead":"cce57ab5670a95a2758f4f44aaf16fddd201f45b","bugs":{"url":"https://github.com/SamVerschueren/expiry-map/issues"},"homepage":"https://github.com/SamVerschueren/expiry-map#readme","_id":"expiry-map@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"samverschueren","email":"sam.verschueren@gmail.com"},"dist":{"integrity":"sha512-GEJCsOxmzGU1klYdzsdFyL/GF5Yw6ZS+Ns9smqEKF5tla/PSYQtVEN3dj58eOtiR5xFRyJ6nfGU+ZD/XRqRaMA==","shasum":"4a69afa8d8d620a26d653214720c1d9ef909a590","tarball":"https://registry.npmjs.org/expiry-map/-/expiry-map-1.0.2.tgz","fileCount":5,"unpackedSize":6503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdAVECRA9TVsSAnZWagAAJqwQAJgjbeQ0GxQxEaMMqtAD\nD8AKwsUrJ26NxuUSlgN0pDux7+pR7EqOxyfHBgy33e8wwiJbFSft/Ll6rFvA\nxDIQDi6//swN6AKbT/cf0jH6NrrIXhKRmr+fGO3prrxlJNQ/iM0KYTHlCqGg\ng3jZC8ghgpMtlWWJ7ktffrLIzi1ks+Oh3sU8z0ZrvyYJgsZIgKQOFfTdW7t0\nK/L4jpNiPoKJfFGUjtVHUrQO9GQ6RqRTO/TBCSggcdFzwK7DkgG2lFvmhB1T\n4V5SW0tb2Qp9qDJpW6cg95QugvhK/PJe+yCeWcMLOu+mmofg1EN+MrF7SVHt\nYQzyqxXl7QGH5OKNIzWOUJ6O5jerISxoLx/KyAyZtTqwoDzkAT+Mg9a4T3tp\neV5ZHybxiwC+rFWQ5EIpkU9odkLdviiVXaQICOEWmx+iccZnPMgW8+oBr5r8\nrr9X8D77Sz7af1mnTrhvjlyWJxYb88pjkDQlcCKA+YEQ24Mx/oYByiGUSId6\nSSGUb/j1so8SI/zfqkhSsOxpzzzBprvGyj4AtB7d/46K4J8MauVZ7GJhO2fS\nB5DF/ranChYg8BrMi5hHgngQA7YjqSmzPwYB/HNyZzYnzhpftlmkBkyxJsih\nVrhryIevK7LyAWNF7xaNY5ZxPICfagp7Gsm0cwtd5uiWaFOR4jPb7f2O/qBN\nOKyR\r\n=KA7A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcWI/S40IdkA7tzmp9tOBA7JGu2apyGXiRWxsKSbDprgIgX3/1GaYhDyR6gNEMpvl2sKhkN361/Xb39pqcpZurB4Y="}]},"maintainers":[{"name":"samverschueren","email":"sam.verschueren@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expiry-map_1.0.2_1534330180314_0.020967068178896042"},"_hasShrinkwrap":false},"1.1.0":{"name":"expiry-map","version":"1.1.0","description":"A Map implementation with expirable items","license":"MIT","repository":{"type":"git","url":"git+https://github.com/SamVerschueren/expiry-map.git"},"author":{"name":"Sam Verschueren","email":"sam.verschueren@gmail.com","url":"github.com/SamVerschueren"},"main":"dist/index.js","engines":{"node":">=6"},"scripts":{"prepublishOnly":"npm run build","pretest":"npm run build -- --sourceMap","test":"npm run lint && nyc ava dist/test.js","lint":"tslint --format stylish --project .","build":"npm run clean && tsc","clean":"del-cli dist"},"files":["dist/index.js","dist/index.d.ts"],"keywords":["map","cache","caching","ttl","expire","expiring","expiry"],"dependencies":{"map-age-cleaner":"^0.1.0"},"devDependencies":{"@types/delay":"^2.0.1","@types/node":"^10.5.8","ava":"^0.25.0","codecov":"^3.0.4","del-cli":"^1.1.0","delay":"^3.0.0","nyc":"^12.0.2","tslint":"^5.10.0","tslint-xo":"^0.8.0","typescript":"^3.0.1"},"typings":"dist/index.d.ts","sideEffects":false,"nyc":{"exclude":["dist/test.js"]},"gitHead":"3a098dbff2fe0f2dd7a45d184f1f4855fd708bc3","bugs":{"url":"https://github.com/SamVerschueren/expiry-map/issues"},"homepage":"https://github.com/SamVerschueren/expiry-map#readme","_id":"expiry-map@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"samverschueren","email":"sam.verschueren@gmail.com"},"dist":{"integrity":"sha512-EviBh1pKXf8TuPIf88HS27Ti2biOZA1Ci4FeWhXzgY/tCBv05FA+7gO0jXt7AF5JgaiReAld1ag3jd5vzvKupw==","shasum":"a625630c32370e60b5866d5315b1ca28f3da2562","tarball":"https://registry.npmjs.org/expiry-map/-/expiry-map-1.1.0.tgz","fileCount":5,"unpackedSize":6598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfF3pCRA9TVsSAnZWagAA6w8P/jezx+IjrFh7lZbz9TiC\nhx5AAeVCJoJFRGXRPYOQxYbn4nJYeNGq0m0K5FBIF10CVQ8uYyDX+na++EbJ\n0vAPxoOM5YDTedtcp7T3I04of6P/Td+jlr+GLBi/cp1Jwhr6YrufTAGNoSFi\nXqjVoKXGU4akLviaTd3Y7f/rCMMpauUr7RxAggBqkmjiJuhjtSOrTId5NVYO\nE7TOJmv2y9v4O9DMUUh2aC4s2iV/Ci2biGUnP9RcfozBI6lzCnijhWjibA+p\nniTxCBLL2lRy4RdBlmRRqOXmyUdb1whzPqHbb5e8sCXF/Izd7OtBtWtLwj1u\nyCAbN7+8i4wGxjG/8J42KVMIJjqQ79uFL5Sp+QO67VaC+3E95iV5ppBSWq8i\nnKn26px1w3sU/5zOF8h8RIor9x5lrnMBCXtQW9Q6caJZqJjAPy4o8Kw42IW3\nszpKSOHOEeVPyBBlSFSsWxMUPBylyCnU+z+X4M/caAbZs0vx+mrFyHLvee1Z\ncRQwgUuzoxkFgvcYSeJvb1RhD/vikgejV+pFs4I1tlslr5y0GgI74LoNKJa2\nHtBRe56y3ZnnCLxbzPE6TJkc6o8nsMsJCcZSF7g/ps3NX2GznqV3BeeoXvjI\nhjSWVBmZyGkySkrewxYx/UnysGkDU411AVlIa/iLG+ZlRVtHd7UpF6XOelms\ngWqd\r\n=Vd4k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8oAAHHF5OcKXlbdO7oxiz7yZ71SEp0feJ1s2lBemV2AiBGyzHDLbNEU8SWWAQBwtyyY9lH0O7IKsrcnsefdXp0Yw=="}]},"maintainers":[{"name":"samverschueren","email":"sam.verschueren@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expiry-map_1.1.0_1534877160915_0.33746608705691017"},"_hasShrinkwrap":false},"2.0.0":{"name":"expiry-map","version":"2.0.0","description":"A Map implementation with expirable items","license":"MIT","repository":{"type":"git","url":"git+https://github.com/SamVerschueren/expiry-map.git"},"author":{"name":"Sam Verschueren","email":"sam.verschueren@gmail.com","url":"github.com/SamVerschueren"},"main":"dist/index.js","engines":{"node":">=8"},"scripts":{"prepublishOnly":"npm run build","pretest":"npm run build -- --sourceMap","test":"npm run lint && nyc ava dist/test.js","lint":"tslint --format stylish --project .","build":"npm run clean && tsc","clean":"del-cli dist"},"keywords":["map","cache","caching","ttl","expire","expiring","expiry"],"dependencies":{"map-age-cleaner":"^0.2.0"},"devDependencies":{"@types/delay":"^2.0.1","@types/node":"^10.5.8","ava":"^0.25.0","del-cli":"^1.1.0","delay":"^3.0.0","nyc":"^12.0.2","tslint":"^5.10.0","tslint-xo":"^0.8.0","typescript":"^3.0.1"},"typings":"dist/index.d.ts","sideEffects":false,"nyc":{"exclude":["dist/test.js"]},"gitHead":"ceb7af2fcd365244cd4f5e4133f7802bf290c685","bugs":{"url":"https://github.com/SamVerschueren/expiry-map/issues"},"homepage":"https://github.com/SamVerschueren/expiry-map#readme","_id":"expiry-map@2.0.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-K1I5wJe2fiqjyUZf/xhxwTpaopw3F+19DsO7Oggl20+3SVTXDIevVRJav0aBMfposQdkl2E4+gnuOKd3j2X0sA==","shasum":"b441ee8e8865291ad9a542783076d33bae0f3582","tarball":"https://registry.npmjs.org/expiry-map/-/expiry-map-2.0.0.tgz","fileCount":5,"unpackedSize":6225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAmVuCRA9TVsSAnZWagAAMYsP/iTIELjANny9CcDo3mE8\n70jf2kL3+DY5h0xNR1TLBHVoleoboKuFh4z0pF7CJcLQyLk/tMg0EHKZ6eH8\nRJWBbKfuV1hpRIStkq0Rxb6wR6HVLPcRvxe5S4Ilf5rl9gvegW5vIm37LXrg\nI24+F56sr6OHt87sOJeS0w+PKDUmSq7jN7+eHqY+T9rsKtmpTAI60fcIuk53\nbSejQPdLzrv/qOffSYLtjQic3glm9Phi90wsaAZGbdHqoEx1ww4iZYLjTWX0\nA3llgRZ7nvyLkE3tHa/MmQWzG2mw9PWQck8IvlhUFgTTjjy/AMNI2Kz00aSN\ngy89LqpBDNT1KDjtoN91Wq50lIozr5FF00bHq3q70td/OLVH1Klq9qcszP30\n3YTGPaZhO1TAq5Gy7xzvflGJh4FqSys8gpBnbq77hO53SCa4OIaXcM1uqR15\nBIB9orxu/E1Pp2l6A2eFQH3g0VlxVyUTxNXAjXXYSA+SXDaUblFNMHXWkIfE\nLW667R8ITjb/mBYbY+oqqgS14JXCXjkxw/CEl3ey7GuK57d5Qo2SOWlqV8x8\nmQ/FgVYcjmtBD9Swe5SOOdYMDGyu1DKDrwMglyKjraniOLhnvshGU9z19TmU\nLD1yxpW5R/v0yuMWC9hWA8tiFoP8m2JX+MovjkNM+MCbuEu47OJHHzWEeWQO\n6PMF\r\n=krxB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC7JmMjFOdBjrYbqjGlr82nvsxLmUWpcC/IPRdBNW7dmAiEAiTyZ5RSqVnbG700VrjK3M7x7CjaY+SNvSoh9FuA8r94="}]},"_npmUser":{"name":"samverschueren","email":"sam.verschueren@gmail.com"},"directories":{},"maintainers":[{"name":"samverschueren","email":"sam.verschueren@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expiry-map_2.0.0_1644324206257_0.9893912473096409"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-14T10:54:21.625Z","1.0.0":"2018-08-14T10:54:21.713Z","modified":"2022-05-01T21:51:36.229Z","1.0.1":"2018-08-14T13:28:08.058Z","1.0.2":"2018-08-15T10:49:40.416Z","1.1.0":"2018-08-21T18:46:00.989Z","2.0.0":"2022-02-08T12:43:26.400Z"},"maintainers":[{"name":"samverschueren","email":"sam.verschueren@gmail.com"}],"description":"A Map implementation with expirable items","homepage":"https://github.com/SamVerschueren/expiry-map#readme","keywords":["map","cache","caching","ttl","expire","expiring","expiry"],"repository":{"type":"git","url":"git+https://github.com/SamVerschueren/expiry-map.git"},"author":{"name":"Sam Verschueren","email":"sam.verschueren@gmail.com","url":"github.com/SamVerschueren"},"bugs":{"url":"https://github.com/SamVerschueren/expiry-map/issues"},"license":"MIT","readme":"# expiry-map\n\n![CI](https://github.com/SamVerschueren/expiry-map/workflows/CI/badge.svg) [![codedov](https://codecov.io/gh/SamVerschueren/expiry-map/branch/master/graph/badge.svg)](https://codecov.io/gh/SamVerschueren/expiry-map)\n\n> A [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) implementation with expirable items\n\nMemory is automatically released when an item expires by removing it from the `Map`.\n\n\n## Install\n\n```\n$ npm install expiry-map\n```\n\n\n## Usage\n\n```js\nimport ExpiryMap = require('expiry-map');\n\nconst map = new ExpiryMap(1000, [\n\t['unicorn', '🦄']\n]);\n\nmap.get('unicorn');\n//=> 🦄\n\nmap.set('rainbow', '🌈');\n\nconsole.log(map.size);\n//=> 2\n\n// Wait for 1 second...\nmap.get('unicorn');\n//=> undefined\n\nconsole.log(map.size);\n//=> 0\n```\n\n\n## API\n\n### ExpiryMap(maxAge, [iterable])\n\n#### maxAge\n\nType: `number`\n\nMilliseconds until an item in the `Map` expires.\n\n#### iterable\n\nType: `Object`\n\nAn `Array` or other `iterable` object whose elements are key-value pairs.\n\n### Instance\n\nAny of the [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) methods.\n\n\n## Related\n\n- [expiry-set](https://github.com/SamVerschueren/expiry-set) - A `Set` implementation with expirable keys\n- [map-age-cleaner](https://github.com/SamVerschueren/map-age-cleaner) - Automatically cleanup expired items in a Map\n\n\n## License\n\nMIT © [Sam Verschueren](https://github.com/SamVerschueren)\n","readmeFilename":"readme.md"}