{"_id":"@aaron_kst/local-cache","_rev":"1-ade253ff2afe774d314170af170cc2d4","name":"@aaron_kst/local-cache","description":"Simple Local Caching system","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@aaron_kst/local-cache","version":"0.0.1","keywords":["Local","Cache","Json","Node"],"author":{"name":"Aaron Chen @ Khant Si Thu"},"license":"ISC","_id":"@aaron_kst/local-cache@0.0.1","maintainers":[{"name":"aaron_kst","email":"dev.kst.aaron@gmail.com"}],"homepage":"https://github.com/Aaronkst/local-cache#readme","bugs":{"url":"https://github.com/Aaronkst/local-cache/issues"},"dist":{"shasum":"a625321607a191776f2c088527db4098037ec346","tarball":"https://registry.npmjs.org/@aaron_kst/local-cache/-/local-cache-0.0.1.tgz","fileCount":6,"integrity":"sha512-5m/WPuga18HMz+uxKiGIoqb6wnP0VCrgKVnmqzVCgqwE4jjOYFF6RjoHg083tuG3Yts/1yUY4Bk/ZrpT6kqCYw==","signatures":[{"sig":"MEYCIQDklM1OLojiRfpuG7+D/FdjeiJuFU+KkgC/JzKWDEhhtAIhAJXjYNVpUDZ1GVVpSrkfyGG3ydfAQuDJu5JhllawgVH+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDhmPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8GA//VPNoaZNPzp0jY4HjO9RxxmMbH3w2liwc+h4OudQ4Ow4bu/Fb\r\n1MByb8bN6CeL9+N1bZ+42wo3HM1nV1p9fMyDAHK4bietxdAnYchhYwfNtiNQ\r\np3k1DEeNBI6rMMWd07nuloT+RYyo+I8clZ52dEXaORxAhvsmid2ZdW0ukgde\r\n0133F7+GRqct2iQ4uJZGZ1hMEwj5dakjtpawdlhhMq3zRcQJYJI7CWRuM8ek\r\nS4iuzgu8191qg3a7276yhoyL8C2cvTFq4pC2FOoINYtm6c2anuE0OypQMMLC\r\nIa1nMFwadY9WLn7JO2EP14t9C7iwKxmVBQ8Mnat2TLSUDVXRVpM+bK+2Ms2+\r\nWBIuq0Bn+PZ3zTnTvT8UmcHbsTjkLhSltqoJGjrDi3rl0oQGdJEkKgA79gI5\r\n3t6FCYvW6CKTPsMvYIzJM/Pe76JUb9ndM/D8F5FKomzq7r6Le0EI5nH3wyh/\r\nHtgZnhIL35kkw81auNS+WwoN4kfRohEC+bTpUpbqPuZPb6FY9rAwY29c2UA8\r\n7Jz8bSRBEP4VdTQdF6Ya1BC8bwms1ubm8z7AiYw2ktr5qxZqp4omydu2RXqq\r\nz/qN3wFNBUAFSjjJyHx7djsh+trU1YxORWmgTAuIAi0uPLO3e+WVyP+5zXoS\r\nwf1SUfHTtXwzImk6RFZJc1UPU9UQKz9SK1U=\r\n=Prfs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"48aa72a6ae7b05903f4bbcade41a1f0e0bbb9e03","scripts":{"test":"ts-mocha tests/**/*.test.ts","build":"tsc"},"_npmUser":{"name":"aaron_kst","email":"dev.kst.aaron@gmail.com"},"repository":{"url":"git+https://github.com/Aaronkst/local-cache.git","type":"git"},"_npmVersion":"8.3.0","description":"Simple Local Caching system","directories":{},"_nodeVersion":"16.15.1","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","mocha":"^10.0.0","eslint":"^8.17.0","ts-mocha":"^10.0.0","typescript":"^4.7.3","@types/chai":"^4.3.1","@types/node":"^17.0.42","@types/mocha":"^9.1.1","@typescript-eslint/parser":"^5.28.0","@typescript-eslint/eslint-plugin":"^5.28.0"},"_npmOperationalInternal":{"tmp":"tmp/local-cache_0.0.1_1661868431232_0.686593662676567","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2022-08-30T14:07:11.171Z","modified":"2024-06-06T17:24:52.214Z","0.0.1":"2022-08-30T14:07:11.404Z"},"maintainers":[{"name":"aaron_kst","email":"dev.kst.aaron@gmail.com"}],"author":{"name":"Aaron Chen @ Khant Si Thu"},"repository":{"url":"git+https://github.com/Aaronkst/local-cache.git","type":"git"},"keywords":["Local","Cache","Json","Node"],"license":"ISC","homepage":"https://github.com/Aaronkst/local-cache#readme","bugs":{"url":"https://github.com/Aaronkst/local-cache/issues"},"readme":"# Local Cache\r\n\r\n## Installation\r\n\r\n    npm install @aaron_kst/local-cache --save\r\n\r\n## Initialization\r\n\r\n### Common JS\r\n\r\n    const LocalCache = require(\"@aaron_kst/local-cache\");\r\n\r\n### Module JS\r\n\r\n    import LocalCache from \"@aaron_kst/local-cache\";\r\n\r\n### Setup & Configuration\r\n\r\nThis will create a \"/cache\" directory within your project folder. Inside the directory will be a json file named according to your constructor argument.\r\n\r\n    const Cache = new LocalCache(\"Foo\");\r\n\r\n## Methods\r\n\r\n### Set Item\r\n\r\nThis method is used to save an item into your cache.\r\n\r\n    const foo = Cache.setItem(\"foo\", \"bar\");\r\n    console.log(foo) // true;\r\n\r\n### Get Item\r\n\r\nThis method is used retrieve an item saved into the local cache.\r\n\r\n    const foo = Cache.getItem(\"foo\");\r\n    console.log(foo) // bar;\r\n","readmeFilename":"README.md"}