{"_id":"@1ib/cache","name":"@1ib/cache","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@1ib/cache","description":"A TypeScript utility for caching results of method executions.","repository":{"type":"git","url":"git+ssh://git@github.com/1ib/cache.git"},"homepage":"https://github.com/1ib/cache","author":{"name":"kingcc"},"keywords":[],"version":"0.0.1","engines":{"node":">=21"},"main":"./build/main.js","scripts":{"test":"find ./source -name '*.test.ts' -exec node --loader @swc-node/register/esm --test {} \\;","build":"tsc -p tsconfig.build.json && tsc-alias","build:watch":"tsc -p tsconfig.build.json -w && tsc-alias -w","prepublishOnly":"npm run test && npm run build","format":"prettier source/**/*.ts -w"},"devDependencies":{"@swc-node/register":"^1.9.0","@swc/core":"^1.4.5","@types/node":"^20.11.25","prettier":"^2.3.0","tsc-alias":"^1.2.11","typescript":"next"},"dependencies":{"reflect-metadata":"^0.2.1"},"_id":"@1ib/cache@0.0.1","gitHead":"b82ba15d6a42a358b6893be86086e5476c68804a","types":"./build/main.d.ts","bugs":{"url":"https://github.com/1ib/cache/issues"},"_nodeVersion":"21.7.3","_npmVersion":"10.5.0","dist":{"integrity":"sha512-D2BcyL7W2EcVcNzVRc/kc2RhIpU6+qEFVZaXLg4y26VLHjsD3/gJl1w/f2A4EPyrMiYBNCaNvt/TIjou7NyOpA==","shasum":"528b852753566ce10c6d0a009066be84076962a1","tarball":"https://registry.npmjs.org/@1ib/cache/-/cache-0.0.1.tgz","fileCount":6,"unpackedSize":3146,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFtnh4bDhmcBya/iyh+nLSYolqz13ja8RqDV9nZIFVosAiAKULxZHmVL7x70gixbWgb6b07GOtoVaD/ZH/yr8YQhIg=="}]},"_npmUser":{"name":"kingcc","email":"someone@mail.com"},"directories":{},"maintainers":[{"name":"kingcc","email":"someone@mail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cache_0.0.1_1716274947811_0.5338534093306129"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-21T07:02:27.683Z","0.0.1":"2024-05-21T07:02:27.959Z","modified":"2024-05-21T07:02:28.254Z"},"maintainers":[{"name":"kingcc","email":"someone@mail.com"}],"description":"A TypeScript utility for caching results of method executions.","homepage":"https://github.com/1ib/cache","keywords":[],"repository":{"type":"git","url":"git+ssh://git@github.com/1ib/cache.git"},"author":{"name":"kingcc"},"bugs":{"url":"https://github.com/1ib/cache/issues"},"readme":"# cache\n\nA TypeScript utility for caching results of method executions.\n\n```ts\nclass {\n  @cache()\n  async foo() {\n    // ...\n  }\n}\n```\n\n## Install\n\n### Node.js\n\nInstall using `npm` or other package managers:\n\n```\nnpm install 1ib/cache\n```\n\nImport into your Node.js project:\n\n```js\n// CommonJS\nconst { cache } = require(\"1ib/cache\")\n\n// ESM\nimport { cache } from \"1ib/cache\"\n```\n\n### Deno\n\nInstall using [JSR](https://jsr.io):\n\n```shell\ndeno add 1ib/cache\n\n#or\n\njsr add 1ib/cache\n```\n\nThen import into your Deno project:\n\n```js\nimport { cache } from \"1ib/cache\"\n```\n\n### Bun\n\nInstall using this command:\n\n```\nbun add 1ib/cache\n```\n\nImport into your Bun project:\n\n```js\nimport { cache } from \"1ib/cache\"\n```\n\n### Browser\n\nIt's recommended to import the minified version to save bandwidth:\n\n```js\nimport { cache } from \"https://cdn.skypack.dev/1ib/cache?min\"\n```\n\nHowever, you can also import the unminified version for debugging purposes:\n\n```js\nimport { cache } from \"https://cdn.skypack.dev/1ib/cache\"\n```\n\n## License\n\nThis project is licensed under the MIT.\n\n## Author\n\n[kingcc](https://github.com/kingcc)\n","readmeFilename":"README.md"}