{"_id":"lomemo","_rev":"3757945","name":"lomemo","description":"Lodash's memoize function, but in a much smaller package than lodash.memoize's.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"time":{"modified":"2025-03-18T07:12:35.000Z","created":"2024-04-14T21:40:21.368Z","1.0.1":"2025-01-17T00:21:18.023Z","1.0.0":"2024-04-14T21:40:21.368Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/lomemo.git"},"versions":{"1.0.1":{"name":"lomemo","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/lomemo.git"},"description":"Lodash's memoize function, but in a much smaller package than lodash.memoize's.","license":"MIT","version":"1.0.1","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["lodash","memoize","function"],"devDependencies":{"fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"lomemo@1.0.1","gitHead":"459d6e830e48ef965ea8cf7fce526718eb9b8e6c","bugs":{"url":"https://github.com/fabiospampinato/lomemo/issues"},"homepage":"https://github.com/fabiospampinato/lomemo#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"shasum":"a1acaeb93800b10b655353bae68ed2ced679f603","size":2351,"noattachment":false,"key":"/lomemo/-/lomemo-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/lomemo/download/lomemo-1.0.1.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lomemo_1.0.1_1737073277846_0.8357000544612276"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-17T00:21:18.023Z","publish_time":1737073278023,"_source_registry_name":"default","_cnpm_publish_time":1737073278023},"1.0.0":{"name":"lomemo","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/lomemo.git"},"description":"Lodash's memoize function, but in a much smaller package than lodash.memoize's.","version":"1.0.0","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["lodash","memoize","function"],"devDependencies":{"fava":"^0.3.2","tsex":"^3.2.1","typescript":"^5.4.5"},"_id":"lomemo@1.0.0","bugs":{"url":"https://github.com/fabiospampinato/lomemo/issues"},"homepage":"https://github.com/fabiospampinato/lomemo#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"shasum":"aa08d360812115ab4527ab66d3392211a79d930f","size":3132,"noattachment":false,"key":"/lomemo/-/lomemo-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/lomemo/download/lomemo-1.0.0.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lomemo_1.0.0_1713130821191_0.45063924222543306"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-14T21:40:21.368Z","publish_time":1713130821368,"_source_registry_name":"default","_cnpm_publish_time":1713130821368}},"readme":"# Lomemo\n\nLodash's memoize function, but in a much smaller package than [`lodash.memoize`](https://www.npmjs.com/package/lodash.memoize)'s.\n\nRead lodash's [docs](https://lodash.com/docs/4.17.15#memoize) for more info.\n\n## Install\n\n```sh\nnpm install lomemo\n```\n\n## Usage\n\n```ts\nimport lomemo from 'lomemo';\n\n// Let's memoize a function, using the first argument as the key\n\nconst memoized = lomemo ( ( a, b ) => a + b );\n\nmemoized ( 1, 2 ); // => 3\nmemoized ( 1, 5 ); // => 3\n\n// Let's memoize a function, using a custom function to generate the key\n\nconst resolver = ( ...args ) => args.join ( '' );\nconst memoized = lomemo ( ( a, b ) => a + b, resolver );\n\nmemoized ( 1, 2 ); // => 3\nmemoized ( 1, 5 ); // => 6\nmemoized ( '', '15' ); // => 6\n```\n\n## License\n\nMIT © [`lodash`](https://github.com/lodash/lodash)\n","_attachments":{},"homepage":"https://github.com/fabiospampinato/lomemo#readme","bugs":{"url":"https://github.com/fabiospampinato/lomemo/issues"},"license":"MIT"}