{"_id":"@cocalc/local-storage-lru","_rev":"35-5751289a372bc308baca9b1cf1b6062d","name":"@cocalc/local-storage-lru","description":"Simple LRU cache for a browser's localStorage","dist-tags":{"latest":"2.5.0"},"versions":{"1.2.1":{"name":"@cocalc/local-storage-lru","version":"1.2.1","keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","_id":"@cocalc/local-storage-lru@1.2.1","maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"homepage":"https://github.com/sagemathinc/local-storage-lru#readme","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"dist":{"shasum":"39f2f54e5d5ce0e28f044fb571a15ba61a135820","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-1.2.1.tgz","fileCount":8,"integrity":"sha512-HhYdt1Kr/KZF5gpYXbJHdcHzMF+YfCMi5TVtgTSgY4iraX987e749KNrj+f4Lj9bsOC/fQdvCt7bn5HpXnGc/w==","signatures":[{"sig":"MEQCID9V1MoJu2Du8IJqHVluWF/XY0BsutR96ksD8hsf5E+JAiA3pTnKcYNiU0TzlGKMiR0/HpV6Jd2hryTleSK2Ax7EqQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6s/bCRA9TVsSAnZWagAAuLoP/A0eQvvPgXD5RM8JVYjh\n+ANjBDHqX7x6AAHfMGc7LluEkp7iZ5JCPWk3UpFl0P0VHwneWVru2/t0gUab\nzEFHLo4ejRz+ovs3UdMZFyYOm1BdaRZYoKUaw/cPkLgZgSwrM/wilWNnWY5e\nrWRr0uBNurqkt2QWsFa4dQ+IQq++XokL+xwE1ooahPrkJNVxaRpaIb2IUZGN\nRVxiFumRM/mgXmB2lj7BbFFLGD/lO4O5wR7ZdJ+3L51B7TU8ywzy/zFxHRw5\nDLUNioOkTEL8dNlTU0BlNYMuPwTQlADwSvuV3m1PSGr4vSf6DCRe/acj+8Bn\n/VKVRKzJTYpmhufb4CWZTWE3cciXrnZO0GBUBr/08LtXI56cdnWTgdOZKNEj\nk/BBAsoSDLvdowEhwsRdUuhncw5fG9GhAIUwGBvO8Yb5fM9zH8oqHSIjhtMM\nbPa8Ys+6DAs6HbrxsMci83SmASYJgWjsgO6/Cvk4haEMpdojQh8JUlsWtHK7\nk1RMDeTVLhWfgnCfx8a1zEaz5DhufO65fe+1GjgTMZYFmb03ya0LdUQvNo3I\nvqtUrvO45o0dSgbJWW8R84M5DgOzyVvvRI+gQAswXx0PmOwjlX9fHcLFCQis\nt+A8R8MWtZH+kELedXmEwU3guwA2fX08SOOLaeo1f8fQuibd1bFGRlS3NH2C\n0k41\r\n=Ieag\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"e69124cce1262e68b3313d959bb2767113aa2a32","scripts":{"lint":"tslint -p tsconfig.json","test":"jest --config jestconfig.json","build":"tsc","format":"prettier --write \"**/*.ts\" \"**/*.js\"","prepare":"npm run build","version":"npm run format && git add -A src","preversion":"npm run lint","postversion":"git push && git push --tags","prepublishOnly":"npm run lint && npm test"},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"repository":{"url":"git+https://github.com/sagemathinc/local-storage-lru.git","type":"git"},"_npmVersion":"8.3.0","description":"Simple LRU cache for a browser's localStorage","directories":{},"_nodeVersion":"14.18.3","_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.7","tslint":"^6.1.3","ts-jest":"^27.1.3","prettier":"^2.5.1","typescript":"^4.5.4","@types/jest":"^27.4.0","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/local-storage-lru_1.2.1_1642778587345_0.8101854017011847","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@cocalc/local-storage-lru","version":"2.0.0","keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","_id":"@cocalc/local-storage-lru@2.0.0","maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"homepage":"https://github.com/sagemathinc/local-storage-lru#readme","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"dist":{"shasum":"5d9b826327216adb9aeee4c8ce5e8d416418d5ed","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-2.0.0.tgz","fileCount":8,"integrity":"sha512-DgwxZrH4DVWM8QWaaiVSTm/A1ExvCvzXZBqBu4wuDyh2Olz2psKKEFT+ZpOPV8hk9n2CMyXIiJ1CAunaudk54Q==","signatures":[{"sig":"MEUCIQDPXXIDCFhx1bo6EwwgHGYiUeuHsfk4LifXP/E0wuucMAIgFtAaENRY/1cvnFECuoHKEnas5cZf7v9I/isHOBcpl9Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27366,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7F63CRA9TVsSAnZWagAAJr0QAJE55XHqWxR95qz+cumb\n2ry/LQCsg+glmzXLPMen7pGWduiNPOfZKeE3D2yYWwqV7RKNZAjYu5hquXSZ\ne998yURPgscGpxju9bisQmCVGDVmlqcZH0+UPHmE9pt69I9n2Qi5k7Op+4PA\nKjtX5t6CoApDSKj5C015Oj9mVTge3ldmmyag3pRP5u2ug5kFUjfIq5Gp8NfS\na96zs3jktqkpCklNfFdZuo1HLk7yUIW6vkSLoCmTM7FPi6PuiiRmWN7THR55\nbzOatzRnD5R2103AXXbL4j+mnFjrZLEqmax2WSmzF5jYd2kzj0v78SRN+C6B\n3LDcg15/rDhRC+Hrlwaw6RikcTPQlsDGg1KIJPYGVk/cNPuRy7mOY/HMiv5q\n2Ttr4Lss+BazfTxjjCZlYoxqbtL+1RhYN+94iILwykIM1lzUr8GMy09D//hE\n52TH87Bw5KP4ooz6tCBWJAKgHk/lJNa+uB/HA2Ky25K7PB26/IsXDylz1Nt/\nq6wjKHsXRvQ8MWfWD7WiWzu5Pkv+0uEWVeIS9Uo9D9J3sC5u3pLKkR8GJofK\n3ehhVhE/tBF4l3GKRAvqQ4mbo4S0Zb4EXcnl0M5uxRdxgBjHwGU7dvLbpj6d\nUW2pay0m4zhwozaWSIO6jDcgWeVTBgL43gHUwERB3pWOt3YKj8VEvCXNw/Bw\nG1kN\r\n=rHRm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"5656a153e71cc1440b7df1eae13b65730c9d8c37","scripts":{"lint":"tslint -p tsconfig.json","test":"jest --config jestconfig.json && npm run make-badges","build":"tsc","format":"prettier --write \"**/*.ts\" \"**/*.js\"","prepare":"npm run build","version":"npm run format && git add -A src","preversion":"npm run lint","make-badges":"istanbul-badges-readme","postversion":"git push && git push --tags","prepublishOnly":"npm run lint && npm test"},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"repository":{"url":"git+https://github.com/sagemathinc/local-storage-lru.git","type":"git"},"_npmVersion":"8.3.0","description":"Simple LRU cache for a browser's localStorage","directories":{},"_nodeVersion":"14.18.3","_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.7","tslint":"^6.1.3","ts-jest":"^27.1.3","prettier":"^2.5.1","typescript":"^4.5.4","@types/jest":"^27.4.0","istanbul-badges-readme":"^1.8.1","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/local-storage-lru_2.0.0_1642880695259_0.03244306369354488","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@cocalc/local-storage-lru","version":"2.1.0","keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","_id":"@cocalc/local-storage-lru@2.1.0","maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"homepage":"https://github.com/sagemathinc/local-storage-lru#readme","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"dist":{"shasum":"cc6dbf381f1a1277a4d589a691cd81062ff21e13","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-2.1.0.tgz","fileCount":12,"integrity":"sha512-VTRZjSt7VQihvpWAvc/upfJnA1oAX9WU9EaeLpRqPN98Cma2SL/H6JelW8YXAc91BeQ1b2fTzMZxBOkqjut4Uw==","signatures":[{"sig":"MEUCIQCRK/NsV2t6ZeH0G3h1F/aaIH50F9C18ojOf7r00x5p3gIgeRCWS+Z9IPbqN3kc3hhpMxRx6K16K5V+VWQNtjv8kpQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29815,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7YppCRA9TVsSAnZWagAAHDgP/0GvjHDJnEvcI//g3VTz\naJJUKX3Ql/KB0YwAV66xoivY5NXlOW3pW/2U68zcuRKY9ZgGJHt6xXZTFx9r\n49gOTjoMD8fL1tINZHWV5JYzz7zIr7qijH642koVYlbFJASulnmzSqwZ5JdS\nG9+HQT5S8zwUJYqQXL/rt/HeA+PSZOJFE1j579ZwmsJTJu/Bc9BHaDea1/n4\n3Ncgjwyk1Rvh2QvNBJzOFh6wRoJ5A2Q1x4ani+9tFsnnzsneExrKMV5GDqM7\no3bvaiLd1PaCDUgH1mAtZbGVK2zdp74hHEx8G1HuheHP+KgBLcG8bBg8dAsF\ngyyEDn4ZLwW9ijPCBtYWPJXVqozWjY3iLvNAFZR7azjiLmSgoWvX3Lm4k2wN\nIfElduCHicUy8xFv4q06S+wJJogYJEG4x968/cyXNgqfbRulPdi2JNYR+wxE\naiHkt83ugJ9a5cZBjOtPqZs//tZAVLc3BgMFm6M9eq0pup8QXoLvWu1JBazb\nBqKab5h7mxW6EvmdG7oHm2a8NWmvc2suHTo+mSVMjheohpcSszWtcNRS+uuk\nDsSfyH/vG6SqlnyVK92lY3QuFqKbeEoLEAHa6kOAl3sigdniDT3+yfMP9tQP\nbWINA3+72ZEjWmPGMPe8aQAKJmHkBDMcAmBIRKdSB++hxEib7l7MbVqFOTOj\nHRi4\r\n=SPLy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"0371f64a3cf9b0a8422ba1a79d5b622312bef4fa","scripts":{"lint":"tslint -p tsconfig.json","test":"jest --config jestconfig.json && npm run make-badges","build":"tsc","format":"prettier --write \"**/*.ts\" \"**/*.js\"","prepare":"npm run build","version":"npm run format && git add -A src","preversion":"npm run lint","make-badges":"istanbul-badges-readme","postversion":"git push && git push --tags","prepublishOnly":"npm run lint && npm test"},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"repository":{"url":"git+https://github.com/sagemathinc/local-storage-lru.git","type":"git"},"_npmVersion":"8.3.0","description":"Simple LRU cache for a browser's localStorage","directories":{},"_nodeVersion":"14.18.3","_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.7","tslint":"^6.1.3","ts-jest":"^27.1.3","prettier":"^2.5.1","typescript":"^4.5.4","@types/jest":"^27.4.0","istanbul-badges-readme":"^1.8.1","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/local-storage-lru_2.1.0_1642957417529_0.7321619705532227","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@cocalc/local-storage-lru","version":"2.1.1","keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","_id":"@cocalc/local-storage-lru@2.1.1","maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"homepage":"https://sagemathinc.github.io/local-storage-lru/","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"dist":{"shasum":"35846cd214230589c725ca9399b8238586987344","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-2.1.1.tgz","fileCount":12,"integrity":"sha512-lfrAglLDv+PdOVrKV3Z22ZexZ6JwbGXTJHtnyoN282Wt1hl0yFvx987e7LmQf/hJUqtFTUCvdtVHZxykDrQhiw==","signatures":[{"sig":"MEQCIEDHuPDvzmqDFyqKUtpeiRG891qDsbiSPHmJVIHacwtwAiBlWwaundJYDQUVWqIcWDW7uf0kfTSwhqpl0GPGFjq22w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7n9ECRA9TVsSAnZWagAA6dkP/3hIDzk/G0HAZq5OPcRU\ncyfjnArCMzIDydGGq/GFgkUXmXw53qBFpDx59YFbtlXgq14NuVstxTyXw6+q\n5hSgrB0sI4Y5B8XpCS8flovdU5COSgxjiB+sa0DzVHJgaspGWnZdJovVPzAL\n9UyatkSoq/5+VuiK0VLwX8HwwsISRjRixZxNJ30uaRj7Chv2wCDkTht/DGRh\nM+Pu5p2vUUGFt9DlI1Ngar5VvCP7ZJf4k9l40Yh7s415z6GFRHR5prhuRUmi\nQrqFwl31btJquKWoN7nSwdIpFiyhPH3tyD5f0yK0SayYtaSqYRr5Fx+U9Qnb\nEFoaI+xkrH/zrpWVhP7fzb4XTubM77xvD/WlwWUcoOj58Z3kexUB7ZX99wnW\naP+RfZmLc9N9RHAUGsbQmVP6wbQXrECfFVsWQEliHV5tAE1wHAxPKv3qSGtd\njnDZnqSw3BEGLu41V1Eaxir7WLRmeCJY+MVv74o1q1SaGSMHG9a+smvfinzL\nWr47GaCTbI58SjZHUYTKdLqzhCgTJHVQxamJpRJk1asWLlBi5YolCxX51Xte\n6vlT8Cz0Ou5zXblfwHkTsbADZwIIS9KrmU6DbdgQV14MeTg4cIwUfVRq7i63\nCC1mlOhX5m4YQ4k4oLux3u2v+N0Aw7hvSLJtEE9BSDvvtDWwz61iMHq4+skM\nbZv0\r\n=nZ03\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"88deed5f6469da5372f409e6a5dbe6497172ab3e","scripts":{"docs":"npx typedoc","lint":"tslint -p tsconfig.json","test":"jest --config jestconfig.json && npm run make-badges","build":"tsc","format":"prettier --write \"**/*.ts\" \"**/*.js\"","prepare":"npm run build","version":"npm run format && git add -A src","docs-show":"xdg-open ./docs/index.html","preversion":"npm run lint","make-badges":"istanbul-badges-readme","postversion":"git push && git push --tags","prepublishOnly":"npm run lint && npm test"},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"repository":{"url":"git+https://github.com/sagemathinc/local-storage-lru.git","type":"git"},"_npmVersion":"8.3.0","description":"Simple LRU cache for a browser's localStorage","directories":{},"_nodeVersion":"14.18.3","_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.7","tslint":"^6.1.3","ts-jest":"^27.1.3","typedoc":"^0.22.11","prettier":"^2.5.1","typescript":"^4.5.4","@types/jest":"^27.4.0","istanbul-badges-readme":"^1.8.1","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/local-storage-lru_2.1.1_1643020100519_0.26673280662991394","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@cocalc/local-storage-lru","version":"2.2.0","keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","_id":"@cocalc/local-storage-lru@2.2.0","maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"homepage":"https://sagemathinc.github.io/local-storage-lru/","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"dist":{"shasum":"e8f281bf6bb407a351bea813927ab8b54568abf2","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-2.2.0.tgz","fileCount":10,"integrity":"sha512-Av5ZGm7x3l79PLoDrrPuyGBFJqV1vKOxn6tUZKOueDrxmsd7yckp8N+k81Off5mRsBgN7x7ITJAznlU09BA0iA==","signatures":[{"sig":"MEYCIQCCXD/RX74Ar9TQNpZNX7e+3b07D7ZDb6S/evvLw3dBDwIhANY6UChhez3pzgBZk0GySxRJ2OyrjA+FQVPyzjnqk5mN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35023,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8RfOCRA9TVsSAnZWagAAYbYP/A3N/0usFzWIALIoJhUw\nF937C73X2kVw5RCfut31P/yDpOhNbSNHy5aF2s0ZCjzr++IJqtUbzSfbqqMa\n2nVaZ0b0oCVJNiJCPDT7aZ7zyhp4zPdbPTT5OHOo3s4CxBSwijGxvlFrI9h9\nyHKeH1SHF3i0kbwQwYznLWbkzDyUZR4/UTuWSRklb8jU8v/iPIeCga6Y6aEz\nghX+uLEzxupp2+7ILZ360J2AOQdl50Q6VSpT8sKUfmU3aV1E5FZl8c4gZ8tj\nPcLwbW8VPNOVc59S6Lecxw3BQDd+Rv6buOcb6XZLmwCIEA3OoosOR0L1Ynww\n4oPN4+sb+hNPWNKb8pkKgC2SxEePQDdYpjtSQH8mzvMwPqowmP57ckWfSq7Y\nM/BYUb7La97vGUvI85fuIxiuAswNlubn+GZPMXMUd5pbEx0XV7bR0pahTn82\ntfShCg+LI6qtX8q1kaCgSUSxTvBWx0XaC3Y36bgSRsJb3upzhsw4LbCpmqqI\n3Buu9SVmSP9TewGyCRx5TrrImULIEBV3j1gjy68RqFsCj0dcPFPS0NYZSwOS\nzQKbP5ZocGqz8yQmROwJUjSbs0v6zQn1LyuAaKnDFwxhfmvW79aWhcKcsR+X\ncNU5TKXLIWAIxmOppbMhIKUAEH6HazxXGTv53EenvyjVV5L8WCxd1GWTODuu\nGKHt\r\n=GgZ1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"1389b8d0ddbc86002ef9d68a7d58b2452cc36713","scripts":{"docs":"rm -rf ./docs/ && npx typedoc","jest":"jest --config jestconfig.json","lint":"tslint -p tsconfig.json","test":"npm run lint && npm run jest && npm run make-badges","build":"npm run clean && tsc","clean":"rm -rf ./lib/ ./docs/ ./coverage/","format":"prettier --write \"**/*.ts\" \"**/*.js\"","prepare":"npm run build","test-ci":"npm run jest","version":"npm run format && git add -A src","docs-show":"xdg-open ./docs/index.html","preversion":"npm run lint","make-badges":"istanbul-badges-readme","postversion":"git push && git push --tags","prepublishOnly":"npm run lint && npm test"},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"repository":{"url":"git+https://github.com/sagemathinc/local-storage-lru.git","type":"git"},"_npmVersion":"8.3.0","description":"Simple LRU cache for a browser's localStorage","directories":{},"_nodeVersion":"14.18.3","_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.7","tslint":"^6.1.3","ts-jest":"^27.1.3","typedoc":"^0.22.11","prettier":"^2.5.1","typescript":"^4.5.4","@types/jest":"^27.4.0","istanbul-badges-readme":"^1.8.1","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/local-storage-lru_2.2.0_1643190222139_0.2943019085450991","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@cocalc/local-storage-lru","version":"2.3.0","keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","_id":"@cocalc/local-storage-lru@2.3.0","maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"homepage":"https://sagemathinc.github.io/local-storage-lru/","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"dist":{"shasum":"e824c03c2408472fa080d512c3fe36a6a98d035c","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-2.3.0.tgz","fileCount":10,"integrity":"sha512-IJGDYxiOjpZJNBBucIituyzUaV2sEpdUm2xHMXJfWwraoApyL6xidV6y0YXL7NG3f9xYwkeXpBYJK0sDyFJA4w==","signatures":[{"sig":"MEYCIQDZqM9wC2dlnJZksfZDGDGFAptrsNhoLc2cWIkIuRuZkQIhALfEn57uPLdPZ3h25zdLJT7ponu9xtzMH35cdh7ciBJV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34971,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaWq/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJRBAApCAWgKkopMXO/0gzx3/ehqR8Q7cKR2ec84z42HjhRLQYlHBx\r\n15E9uww+G28MQdenVCgg0ABeZ/qCSDTGPkz2qHW+cT/JZcWhWVBZMa5YKMoR\r\nlsOEWOfdu79P/EFshwy3E/pbf781ZXNUlx6dmpHjgamcbv5YoAQVCJm6vQvj\r\nrHSUG8HYqPxhk68hyaD9/E4OIrm09MvFAKH417rRaBC4zUvZSj2ORdF7O9Xb\r\nMI2OjeuQ3KF6m+d/KtGNEj4K/RpF8h8xjKr0yKYqpHxqpbNbWjSkAibYxYno\r\nx6XFrtHqow2wU0ACBddTNZ09YIqHmDr37TAfaN3cP0YViConnjsP9g21IW+A\r\n7Q5UA9X4U/MXSASo1dY7CjjdoIknYBOeCUSR/ig8WTFuPU17HEMF1s4+YNaY\r\nNvG8V7vqnbCBliztEm3cf/UHEWyeSBiS8mF1uTFoJAwdo/w3dNsjQ6o5BLJH\r\npjbXG/HPDJaZS6mQajuhwWdqPW2KSZIKaIab7Ej+9MXJQqx8oe6QlfASx1ig\r\nlEnnG/80WnLHx0b2vqRbTMU1yaoWSb5cg6IJJUIU2B0HAjiOhWp5FBb4xL3o\r\ncgPkaIyApOfmlqMMxnn2aXAhY1QWwFYkQY8E+YbDqhyHOgxvQ5ZHV5hTcFq3\r\nxtUJ0j/ebLoUcHtZ1/K6HiDAwdJkx2mPt4Y=\r\n=249q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"2ef2075ed66c01e4ab3210ab7aa82ec3442c0ad2","scripts":{"docs":"rm -rf ./docs/ && npx typedoc","jest":"jest --config jestconfig.json","lint":"tslint -p tsconfig.json","test":"npm run lint && npm run jest && npm run make-badges","build":"npm run clean && tsc","clean":"rm -rf ./lib/ ./docs/ ./coverage/","format":"prettier --write \"**/*.ts\" \"**/*.js\"","prepare":"npm run build","test-ci":"npm run jest","version":"npm run format && git add -A src","docs-show":"xdg-open ./docs/index.html","preversion":"npm run lint","make-badges":"istanbul-badges-readme","postversion":"git push && git push --tags","prepublishOnly":"npm run lint && npm test"},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"repository":{"url":"git+https://github.com/sagemathinc/local-storage-lru.git","type":"git"},"_npmVersion":"8.7.0","description":"Simple LRU cache for a browser's localStorage","directories":{},"_nodeVersion":"14.19.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","tslint":"^6.1.3","ts-jest":"^27.1.4","typedoc":"^0.22.15","prettier":"^2.6.2","typescript":"^4.6.3","@types/jest":"^27.4.1","istanbul-badges-readme":"^1.8.1","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/local-storage-lru_2.3.0_1651075775019_0.6133114355618356","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"@cocalc/local-storage-lru","version":"2.4.0","keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","_id":"@cocalc/local-storage-lru@2.4.0","maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"homepage":"https://sagemathinc.github.io/local-storage-lru/","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"dist":{"shasum":"2cdc5fab8d6acd0ae54bbf3f261364c6e1fdb0d8","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-2.4.0.tgz","fileCount":2,"integrity":"sha512-JOL7j66ob4uLEz1NrqCwPONKNQvjBFp27kMrxKi7d6gnhRl9EGkvRvijAYVWkRbaoXo+fd8fUb6xuJ+540z8fw==","signatures":[{"sig":"MEUCIQCy0GFHGQRiBWIr7ve0OaaNR3MeYW4aMr7Ie4WfQ/nM+gIgemy3L3jISwcFSi0ZINlaEnEk2laBXvgI9OBkoFfv+A8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5869},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"5335973b446fc42340da74d6a1c15743d72c1fd6","scripts":{"docs":"rm -rf ./docs/ && npx typedoc","jest":"jest --config jestconfig.json","lint":"tslint -p tsconfig.json","test":"npm run lint && npm run jest && npm run make-badges","build":"npm run clean && tsc","clean":"rm -rf ./lib/ ./docs/ ./coverage/","format":"prettier --write \"**/*.ts\" \"**/*.js\"","prepare":"npm run build","test-ci":"npm run jest","version":"npm run format && git add -A src","docs-show":"xdg-open ./docs/index.html","preversion":"npm run lint","make-badges":"istanbul-badges-readme","postversion":"git push && git push --tags","prepublishOnly":"npm run lint && npm test"},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"deprecated":"broken package","repository":{"url":"git+https://github.com/sagemathinc/local-storage-lru.git","type":"git"},"_npmVersion":"10.2.5","description":"Simple LRU cache for a browser's localStorage","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslint":"^6.1.3","ts-jest":"^29.1.1","typedoc":"^0.22.15","prettier":"^2.6.2","typescript":"^4.6.3","@types/jest":"^29.5.11","istanbul-badges-readme":"^1.8.1","jest-environment-jsdom":"^29.7.0","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/local-storage-lru_2.4.0_1703674892273_0.2980572671105042","host":"s3://npm-registry-packages"}},"2.4.2":{"name":"@cocalc/local-storage-lru","version":"2.4.2","keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","_id":"@cocalc/local-storage-lru@2.4.2","maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"homepage":"https://sagemathinc.github.io/local-storage-lru/","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"dist":{"shasum":"05bc1f28feb20a03e6160cbb5df6ea416ec841ec","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-2.4.2.tgz","fileCount":2,"integrity":"sha512-/xHyrHcMJwp07GBw3Hqdj/BNJsKHrQryvZfnDoCZaXESX3JE4iBzlVh7q+UwX0GSJy2L9HNX/0m5y8QMoX/pCQ==","signatures":[{"sig":"MEUCIQCLT3DCHXNrUI07xcZyktjytRPjAdD9xTdCMEG6AlHsGgIgEF8GS6Tc4zqOoXcBNDE0xNmLkfQWShimQDKF/j1v5QQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5869},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"ef6d6573ef6fed45b6afa78d85517b4a6f43e187","scripts":{"docs":"rm -rf ./docs/ && npx typedoc","jest":"jest --config jestconfig.json","lint":"tslint -p tsconfig.json","test":"npm run lint && npm run jest && npm run make-badges","build":"npm run clean && tsc","clean":"rm -rf ./lib/ ./docs/ ./coverage/","format":"prettier --write \"**/*.ts\" \"**/*.js\"","prepare":"npm run build","test-ci":"npm run jest","version":"npm run format && git add -A src","docs-show":"xdg-open ./docs/index.html","preversion":"npm run lint","make-badges":"istanbul-badges-readme","postversion":"git push && git push --tags","prepublishOnly":"npm run lint && npm test"},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"deprecated":"broken package","repository":{"url":"git+https://github.com/sagemathinc/local-storage-lru.git","type":"git"},"_npmVersion":"10.2.5","description":"Simple LRU cache for a browser's localStorage","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslint":"^6.1.3","ts-jest":"^29.1.1","typedoc":"^0.22.15","prettier":"^2.6.2","typescript":"^4.6.3","@types/jest":"^29.5.11","istanbul-badges-readme":"^1.8.1","jest-environment-jsdom":"^29.7.0","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/local-storage-lru_2.4.2_1703676623702_0.6630201521227166","host":"s3://npm-registry-packages"}},"2.4.3":{"name":"@cocalc/local-storage-lru","version":"2.4.3","keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","_id":"@cocalc/local-storage-lru@2.4.3","maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"homepage":"https://sagemathinc.github.io/local-storage-lru/","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"dist":{"shasum":"544ea5fa7cfb5e4727a12bffdccbc242a58a121e","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-2.4.3.tgz","fileCount":10,"integrity":"sha512-5ck4Oc7KsRttG7W6n9kRHVn0uUVHqwVIqQPLvuUtEyUEI7+0gtnvhZrvB4yiwOfeEeFQ63spIWenM6J/sp2B/w==","signatures":[{"sig":"MEYCIQDCGGmOwdDc2lkzsTYdl2F15bRAjYSnRuoO1vg8IgeKUgIhAOUm6uqlNjAIMWFhy4zSDKK73ESD4dEaBr9wWrDv2k8E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35026},"main":"./lib/index.js","types":"./lib/index.d.ts","exports":{".":"./lib/index.js"},"gitHead":"8b8ddfce54cdc35abb13d8c0933628fe6121ad72","scripts":{"docs":"rm -rf ./docs/ && npx typedoc","jest":"jest --config jestconfig.json","lint":"tslint -p tsconfig.json","test":"npm run lint && npm run jest && npm run make-badges","build":"npm run clean && tsc","clean":"rm -rf ./lib/ ./docs/ ./coverage/","format":"prettier --write \"**/*.ts\" \"**/*.js\"","prepare":"npm run build","test-ci":"npm run jest","version":"npm run format && git add -A src","docs-show":"xdg-open ./docs/index.html","preversion":"npm run lint","make-badges":"istanbul-badges-readme","postversion":"git push && git push --tags","prepublishOnly":"npm run lint && npm test"},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"repository":{"url":"git+https://github.com/sagemathinc/local-storage-lru.git","type":"git"},"_npmVersion":"10.2.5","description":"Simple LRU cache for a browser's localStorage","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslint":"^6.1.3","ts-jest":"^29.1.1","typedoc":"^0.22.15","prettier":"^2.6.2","typescript":"^4.6.3","@types/jest":"^29.5.11","istanbul-badges-readme":"^1.8.1","jest-environment-jsdom":"^29.7.0","tslint-config-prettier":"^1.18.0"},"_npmOperationalInternal":{"tmp":"tmp/local-storage-lru_2.4.3_1703677019485_0.7452815639121","host":"s3://npm-registry-packages"}},"2.5.0":{"name":"@cocalc/local-storage-lru","version":"2.5.0","description":"Simple LRU cache for a browser's localStorage","main":"./lib/index.js","exports":{".":"./lib/index.js"},"scripts":{"test":"npm run lint && npm run jest && npm run make-badges","test-ci":"npm run jest","jest":"jest --config jestconfig.json","clean":"rm -rf ./lib/ ./docs/ ./coverage/","build":"npm run clean && tsc","format":"prettier --write \"**/*.ts\" \"**/*.js\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm run lint && npm test","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags","make-badges":"istanbul-badges-readme","docs-show":"xdg-open ./docs/index.html","docs":"rm -rf ./docs/ && npx typedoc"},"repository":{"type":"git","url":"git+https://github.com/sagemathinc/local-storage-lru.git"},"keywords":["localStorage","LRU","Cache"],"author":{"name":"Sagemath, Inc."},"license":"APACHE-2.0","homepage":"https://sagemathinc.github.io/local-storage-lru/","devDependencies":{"@types/jest":"^29.5.11","istanbul-badges-readme":"^1.8.1","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","prettier":"^2.6.2","ts-jest":"^29.1.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typedoc":"^0.22.15","typescript":"^4.6.3"},"bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"_id":"@cocalc/local-storage-lru@2.5.0","gitHead":"146e68da092fd982fac6ae53d4e2f0ee95731864","types":"./lib/index.d.ts","_nodeVersion":"18.17.1","_npmVersion":"10.8.1","dist":{"integrity":"sha512-hTBh1LxKxWD6q8NCj0xZthT/T4b6hJC1dxaM89CEoAW5pPV9q30NeKugL/Of8oKfC1mHYIPU96LV9miXtDGq0Q==","shasum":"438e544817b09dd9b305e6b59333522c2c1f8f1c","tarball":"https://registry.npmjs.org/@cocalc/local-storage-lru/-/local-storage-lru-2.5.0.tgz","fileCount":10,"unpackedSize":34894,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHDc3cn6vmqXs41gSfKtIrXMwIhHH7IAeQ6OgmFA5PuAIhANZc8QHvVB2KiYE8MzSUYkrx1uzpIUFGvuE6JWqtBF4a"}]},"_npmUser":{"name":"hasch","email":"harald.schilly@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/local-storage-lru_2.5.0_1719394647348_0.5797621714056493"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-20T11:45:18.366Z","modified":"2024-06-26T09:37:27.712Z","1.0.1":"2022-01-20T11:45:18.548Z","1.0.2":"2022-01-20T13:42:43.837Z","1.0.3":"2022-01-20T13:47:11.425Z","1.0.4":"2022-01-20T14:59:46.810Z","1.0.5":"2022-01-20T15:08:57.909Z","1.0.6":"2022-01-20T16:08:04.313Z","1.0.7":"2022-01-20T16:22:59.742Z","1.0.8":"2022-01-20T16:55:41.256Z","1.0.9":"2022-01-20T18:40:35.459Z","1.1.0":"2022-01-20T18:48:09.646Z","1.2.0":"2022-01-21T14:04:21.537Z","1.2.1":"2022-01-21T15:23:07.503Z","2.0.0":"2022-01-22T19:44:55.430Z","2.1.0":"2022-01-23T17:03:37.724Z","2.1.1":"2022-01-24T10:28:20.712Z","2.2.0":"2022-01-26T09:43:42.339Z","2.3.0":"2022-04-27T16:09:35.181Z","2.4.0":"2023-12-27T11:01:32.467Z","2.4.2":"2023-12-27T11:30:23.866Z","2.4.3":"2023-12-27T11:36:59.722Z","2.5.0":"2024-06-26T09:37:27.480Z"},"maintainers":[{"name":"wstein","email":"wstein@sagemath.com"},{"name":"hasch","email":"harald.schilly@gmail.com"}],"author":{"name":"Sagemath, Inc."},"repository":{"type":"git","url":"git+https://github.com/sagemathinc/local-storage-lru.git"},"keywords":["localStorage","LRU","Cache"],"license":"APACHE-2.0","homepage":"https://sagemathinc.github.io/local-storage-lru/","bugs":{"url":"https://github.com/sagemathinc/local-storage-lru/issues"},"readme":"# LRU Cache for Browser's Local Storage\n\n[![npm version](https://badge.fury.io/js/@cocalc%2Flocal-storage-lru.svg)](https://badge.fury.io/js/@cocalc%2Flocal-storage-lru) ![npm](https://img.shields.io/npm/dw/@cocalc/local-storage-lru) &nbsp; [![Documentation Online](https://img.shields.io/badge/documentation-online-blue.svg)](https://sagemathinc.github.io/local-storage-lru/) &nbsp; [![Node.js CI](https://github.com/sagemathinc/local-storage-lru/actions/workflows/node.js.yml/badge.svg)](https://github.com/sagemathinc/local-storage-lru/actions/workflows/node.js.yml) ![Functions](https://img.shields.io/badge/functions-97.77%25-brightgreen.svg?style=flat) ![Branches](https://img.shields.io/badge/branches-91.21%25-brightgreen.svg?style=flat)\n\n## Problem\n\nSaving an increasing number of key/value pairs in `localStorage` causes it to fill up at some point.\nFrom that point on, adding/modifying throws an exception.\n\n## Solution\n\nKeep track of last `n` recently accessed/modified keys.\nIf an exception occurs,\nrandomly remove a few keys which aren't in that list and also – optionally – only whitelisted ones.\nThen try again storing the new value.\n\n### Benefits\n\n- The entire overhead is _one_ additional key/value pair storing the pointers to these LRU keys.\n- The keys and values you try to store are not modified.\n\n## Design Goals\n\n- **robust**: no exceptions are thrown (only if there is a problematic key)\n- **universal**: also supports storing objects, `Date`, `BigInt`, arrays etc..\n- **backwards compatible**: if you already store string values, they're not modified. You can even tell it to attempt parsing existing JSON values.\n\n## Usage\n\nThis is how to instantiate the wrapper class.\n\nOptions:\n\n- `recentKey` (optional): the string of the key, under which the list of recently accessed keys is stored.\n- `maxSize` (optional): the maximum number of keys to keep in the list of recently used keys. A larger list reduces the chances of deleting an \"important\" key, but at the same time, overall more storage is used.\n- `isCandidate` (optional): a function that takes a key and returns `true` if the key is a candidate for deletion. By default, any key except for the `recentKey` is a candidate. Optional second argument is the array of all recent keys.\n- `fallback` (optional, default `false`): if `true`, `localStorage` is checked if it works. If not, data is stored in a mockup storage with limited space.\n- `serializer` (optional): by default `JSON.stringify`, but you can use your own.\n- `deserializer` (optional): counterpart to the above, by default `JSON.parse`.\n- `parseExistingJSON` (optional): if `true`, it tries to deserialize already existing JSON values.\n- `typePrefixes` (optional): prefixes to serialized values if they're not stored a strings – somehow, we have to mark values if they are a complex object...\n- `typePrefixDelimiter` (optional): string appended to each `typePrefix` to separate from the serialized value – default: `\\0`\n\n```ts\n// simple:\nconst storage = new LocalStorageLRU();\n\n// with options:\nfunction candidate(key: string): boolean {\n  if (key.startsWith('preserved-')) {\n    return false;\n  }\n  return true;\n}\n\nconst storage = new LocalStorageLRU({\n  recentKey: RECENTLY_KEY,\n  maxSize: RECENTLY_KEEP,\n  isCandidate: candidate,\n  fallback: true,\n});\n```\n\n```ts\n// set/get/delete\nstorage.set('foo', 'bar');\nstorage.get('foo') == 'bar'; // true\nstorage.delete('foo');\n\n// iterate\nstorage.set('key1', '1');\nstorage.set('key2', '2');\nstorage.set('key3', '3');\nconst entries: [string, any][] = [];\nfor (const [k, v] of storage) {\n  entries.push([k, v]);\n}\nentries; // equals: [[ 'key1', '1' ], [ 'key2', '2' ], [ 'key3', '3' ]]\n```\n\n**For more, check out the [documentation](https://sagemathinc.github.io/local-storage-lru/) or the [tests](__tests__/test-lru.ts).**\n\n## Development\n\nThe setup follows this [step-by-step guide](https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c).\n\n## Release\n\nThere are some hooks registered, see link above, to check for clean git tree, all tests passing and linting.\n\n```bash\nnpm version patch\nnpm publish\n```\n\n## License\n\n[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html)\n","readmeFilename":"README.md"}