{"id":16252452,"url":"https://github.com/remarkablemark/imc","last_synced_at":"2026-02-24T01:32:21.460Z","repository":{"id":57272435,"uuid":"266399914","full_name":"remarkablemark/imc","owner":"remarkablemark","description":":key: IMC is an In-Memory Cache key-value store.","archived":false,"fork":false,"pushed_at":"2025-03-06T23:59:09.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T08:34:18.628Z","etag":null,"topics":["imc","in-memory-caching","key-value-store"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/imc","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remarkablemark.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["remarkablemark"],"patreon":"remarkablemark","open_collective":null,"ko_fi":"remarkablemark","tidelift":null,"community_bridge":null,"liberapay":"remarkablemark","issuehunt":null,"otechie":null,"thanks_dev":"u/gh/remarkablemark","custom":["https://b.remarkabl.org/teespring"]}},"created_at":"2020-05-23T18:53:20.000Z","updated_at":"2025-03-06T23:59:12.000Z","dependencies_parsed_at":"2025-04-08T12:42:18.071Z","dependency_job_id":"72eb71cb-fddf-4ddd-a6e1-7fc513b50b67","html_url":"https://github.com/remarkablemark/imc","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/remarkablemark/imc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fimc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fimc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fimc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fimc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remarkablemark","download_url":"https://codeload.github.com/remarkablemark/imc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fimc/sbom","scorecard":{"id":770039,"data":{"date":"2025-08-11","repo":{"name":"github.com/remarkablemark/imc","commit":"cdf179983ddffb10f92a4c8df4fa7cf434809e92"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T01:58:11.029Z","repository_id":57272435,"created_at":"2025-08-23T01:58:11.030Z","updated_at":"2025-08-23T01:58:11.030Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29766371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T01:28:30.166Z","status":"ssl_error","status_checked_at":"2026-02-24T01:28:27.518Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["imc","in-memory-caching","key-value-store"],"created_at":"2024-10-10T15:13:44.975Z","updated_at":"2026-02-24T01:32:21.442Z","avatar_url":"https://github.com/remarkablemark.png","language":"TypeScript","funding_links":["https://github.com/sponsors/remarkablemark","https://patreon.com/remarkablemark","https://ko-fi.com/remarkablemark","https://liberapay.com/remarkablemark","https://thanks.dev/u/gh/remarkablemark","https://b.remarkabl.org/teespring"],"categories":[],"sub_categories":[],"readme":"# IMC\n\n[![NPM](https://nodei.co/npm/imc.png)](https://nodei.co/npm/imc/)\n\n[![NPM version](https://img.shields.io/npm/v/imc.svg)](https://www.npmjs.com/package/imc)\n[![Build Status](https://travis-ci.org/remarkablemark/imc.svg?branch=master)](https://travis-ci.org/remarkablemark/imc)\n[![Coverage Status](https://coveralls.io/repos/github/remarkablemark/imc/badge.svg?branch=master)](https://coveralls.io/github/remarkablemark/imc?branch=master)\n\n**IMC** is an **I**n-**M**emory **C**ache key-value store.\n\n```js\nimport cache from 'imc';\ncache.set('key', 'value');\ncache.get('key'); // 'value'\n```\n\n[Repl.it](https://repl.it/@remarkablemark/imc) | [JSFiddle](https://jsfiddle.net/remarkablemark/z4s5qcf6/)\n\n## Installation\n\n[NPM](https://www.npmjs.com/package/imc):\n\n```sh\n$ npm install imc --save\n```\n\n[Yarn](https://yarnpkg.com/package/imc):\n\n```sh\n$ yarn add imc\n```\n\n[CDN](https://unpkg.com/imc/):\n\n```html\n\u003cscript src=\"https://unpkg.com/imc@latest/umd/imc.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  var cache = window.IMC.cache;\n  var Cache = window.IMC.Cache;\n\u003c/script\u003e\n```\n\n## Usage\n\n### Import Module\n\n```js\n// CommonJS\nconst { Cache, cache } = require('imc');\n\n// ES Modules\nimport cache, { Cache } from 'imc';\n```\n\n### Global Cache\n\nYou can either use the global cache store:\n\n```js\n// cache is also a default export\nimport { cache } from 'imc';\n```\n\n### Local Cache\n\nOr create a local cache store:\n\n```js\nimport { Cache } from 'imc';\nconst cache = new Cache();\n```\n\nWhen instantiating a new cache store, the initial state can be set:\n\n```js\nconst cache = new Cache({ key: 'value' });\n```\n\n### Set\n\nSet key-value:\n\n```js\ncache.set('key', 'value');\n```\n\nSet key-value using object:\n\n```js\ncache.set({ key: 'value' });\n```\n\nSet multiple keys and values, which are merged to the store object:\n\n```js\ncache.set({\n  key: 'value',\n  answer: 42,\n});\n```\n\n### Get\n\nGet value from key:\n\n```js\ncache.get('key'); // 'value'\n```\n\nIf key-value does not exist, it will return `undefined`:\n\n```js\ncache.get('invalid'); // undefined\n```\n\nTo differentiate from a key-value that hasn't be set, you can use `null`:\n\n```js\ncache.set('invalid', null);\n```\n\n### Delete\n\nDelete key-value from store:\n\n```js\ncache.delete('key');\n```\n\n### Clear\n\nClear store:\n\n```js\ncache.clear();\n```\n\nThis means the store becomes an empty object:\n\n```js\ncache.get(); // {}\n```\n\n## Testing\n\nRun tests with coverage:\n\n```sh\n$ npm test\n```\n\nRun tests in watch mode:\n\n```sh\n$ npm run test:watch\n```\n\nLint files:\n\n```sh\n$ npm run lint\n```\n\nFix lint errors:\n\n```sh\n$ npm run lint:fix\n```\n\n## Release\n\nOnly collaborators with credentials can release and publish:\n\n```sh\n$ npm run release\n$ git push --follow-tags \u0026\u0026 npm publish\n```\n\n## License\n\n[MIT](https://github.com/remarkablemark/imc/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Fimc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremarkablemark%2Fimc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Fimc/lists"}