{"_id":"lomemo","_rev":"1-5dba8c4e7f9a9bf5c37eac648d0b6adc","name":"lomemo","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"lomemo","version":"1.0.0","keywords":["lodash","memoize","function"],"_id":"lomemo@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/lomemo#readme","bugs":{"url":"https://github.com/fabiospampinato/lomemo/issues"},"dist":{"shasum":"aa08d360812115ab4527ab66d3392211a79d930f","tarball":"https://registry.npmjs.org/lomemo/-/lomemo-1.0.0.tgz","fileCount":12,"integrity":"sha512-lffld7Byac80Q3M0QEWI1bcnhg0utsi42WeWIEisDPIvBOj6cO9WDc5hFxCdL9mu/2VvtCtcRZVwA/orlgnuFQ==","signatures":[{"sig":"MEUCIBXEEbf/fekUIa0GT9v3aQpSHfETLFA/a2e0auuWHTAXAiEA+esm6LAnF2LuD56RVdq5ATNZ0NWYxhL6Nv3gLyhGTP4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7759},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/lomemo.git","type":"git"},"_npmVersion":"10.2.3","description":"Lodash's memoize function, but in a much smaller package than lodash.memoize's.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.3.2","tsex":"^3.2.1","typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/lomemo_1.0.0_1713130821191_0.45063924222543306","host":"s3://npm-registry-packages"}},"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":{"integrity":"sha512-g8CnVp7UYypeQKpXpMzyrJoDzhOoqVQYSJApoq/cFI3vGxXoHQ+6lH5cApW9XwzVy5SL9/Owil7/JxbKckw0Lg==","shasum":"a1acaeb93800b10b655353bae68ed2ced679f603","tarball":"https://registry.npmjs.org/lomemo/-/lomemo-1.0.1.tgz","fileCount":7,"unpackedSize":4515,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGknJOlKNF3/EqU8bbXygA6WCm8zCcwq+b0rnvqvpqjbAiEAs17IU0QUQqvygeZFJ30v1XIeT29uumDJLjMJDlPE+ZA="}]},"_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}},"time":{"created":"2024-04-14T21:40:21.189Z","modified":"2025-01-17T00:21:18.210Z","1.0.0":"2024-04-14T21:40:21.368Z","1.0.1":"2025-01-17T00:21:18.023Z"},"bugs":{"url":"https://github.com/fabiospampinato/lomemo/issues"},"homepage":"https://github.com/fabiospampinato/lomemo#readme","keywords":["lodash","memoize","function"],"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.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"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","readmeFilename":"readme.md","license":"MIT"}