{"id":46598067,"url":"https://github.com/artmakarov/simple-data-storage","last_synced_at":"2026-03-07T15:07:59.208Z","repository":{"id":57359967,"uuid":"247488003","full_name":"artmakarov/simple-data-storage","owner":"artmakarov","description":"Simple key-value storage in the browser or node","archived":false,"fork":false,"pushed_at":"2020-04-25T09:26:03.000Z","size":27,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-08-08T22:56:25.869Z","etag":null,"topics":["datastorage","in-memory","in-memory-database","in-memory-storage","javascript-modules","key-value","storage"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/artmakarov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-15T14:57:04.000Z","updated_at":"2023-04-18T22:46:29.000Z","dependencies_parsed_at":"2022-09-06T21:41:23.993Z","dependency_job_id":null,"html_url":"https://github.com/artmakarov/simple-data-storage","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/artmakarov/simple-data-storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artmakarov%2Fsimple-data-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artmakarov%2Fsimple-data-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artmakarov%2Fsimple-data-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artmakarov%2Fsimple-data-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artmakarov","download_url":"https://codeload.github.com/artmakarov/simple-data-storage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artmakarov%2Fsimple-data-storage/sbom","scorecard":{"id":209644,"data":{"date":"2025-08-11","repo":{"name":"github.com/artmakarov/simple-data-storage","commit":"b3d92f1a18a81b2cfd160697c73538601fd635b8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T00:32:43.579Z","repository_id":57359967,"created_at":"2025-08-17T00:32:43.579Z","updated_at":"2025-08-17T00:32:43.579Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30219525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"last_error":"SSL_read: 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":["datastorage","in-memory","in-memory-database","in-memory-storage","javascript-modules","key-value","storage"],"created_at":"2026-03-07T15:07:58.669Z","updated_at":"2026-03-07T15:07:59.194Z","avatar_url":"https://github.com/artmakarov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SData.js\n![Minified size](https://img.shields.io/github/size/artmakarov/simple-data-storage/dist/sdata.min.js.svg)\n[![npm downloads](https://img.shields.io/npm/dw/simple-data-storage.svg)](https://npm-stat.com/charts.html?package=simple-data-storage\u0026from=2020-03-19)\n[![npm downloads](https://img.shields.io/npm/dm/simple-data-storage.svg)](https://npm-stat.com/charts.html?package=simple-data-storage\u0026from=2020-03-19)\n[![Open issues](https://img.shields.io/github/issues-raw/artmakarov/simple-data-storage.svg)](https://github.com/artmakarov/simple-data-storage/issues)\n[![Open pull request](https://img.shields.io/github/issues-pr-raw/artmakarov/simple-data-storage.svg)](https://github.com/artmakarov/simple-data-storage/pulls)\n[![Version](https://img.shields.io/npm/v/simple-data-storage.svg)](https://www.npmjs.com/package/simple-data-storage)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/artmakarov/simple-data-storage/graphs/commit-activity)\n[![License: MIT](https://img.shields.io/github/license/artmakarov/simple-data-storage.svg)](https://github.com/artmakarov/simple-data-storage/blob/master/LICENSE)\n\n\u003e Simple key-value storage in the browser or node\n\n\n## Install\n\n```shell script\nnpm i simple-data-storage\n```\n\nin browser:\n\n```\n\u003cscript src=\"//unpkg.com/simple-data-storage/dist/sdata.min.js\"\u003e\u003c/script\u003e\n```\n\n\n## API\n\n#### SData([key: _any_, value: _any_])\n\nIf there are no parameters it returns the full storage object.\\\nIf there is a `value`, it sets the passed value by the specified `key` and returns value.\\\nIf only a `key` is passed, the value for this key is returned.\n\n#### SData.init(data: _object_)\n\nInitializes the storage from the passed `data` in JSON format.\n\n#### SData.has(key: _any_)\n\nChecks whether the `key` exists in the storage.\\\nReturns a Boolean value.\n\n#### SData.clear([key: _any_, key_2: _any_, key_3: _any_, ...key_n: _any_])\n\nDeletes the key and value from storage.\\\nIf there are no parameters, the entire storage is cleared\n\n#### SData.toString()\n\nReturns a snapshot of the storage as a string.\n\n\n## Usage example\n\n```js\nconst SData = require('simple-data-storage');\n\nSData('one_key', 'one_value');\nconsole.log(SData('one_key')); //=\u003e one_value\n\nSData(321, 963);\nSData('other key', { abc: 'boom!' });\n\nconsole.log(SData(321)); //=\u003e 963\nconsole.log(SData('321')); //=\u003e 963\nconsole.log(SData('other key')); //=\u003e { abc: 'boom!' }\nconsole.log(SData('other key').abc); //=\u003e boom!\n\n// clear one item\nSData.clear('other key');\n\nconsole.log(SData('other key')); //=\u003e undefined\nconsole.log(SData('one_key')); //=\u003e one_value\n\n// clear all items\nSData(123, ['test', 4]);\nSData.clear();\n\nconsole.log(SData(123)); //=\u003e undefined\nconsole.log(SData('one_key')); //=\u003e undefined\n```\n\nIn the browser, use the global function **SData()**\n\n```html\n\u003cscript\u003e\n  SData('key', { data: [1, 'two', { other: 3 }] });\n  alert(SData('key').data[2].other); //=\u003e 3\n\u003c/script\u003e\n```\n\n## Development\n\n```shell script\ngit clone git@github.com:artmakarov/simple-data-storage.git\ncd simple-data-storage\nnpm install\nnpm run build\n```\n\n#### Tests\n\n```shell script\nnpm run test\n```\n\n\n## Contributing\n\nContributions, issues and feature requests are welcome!\n\nFeel free to check [issues page](https://github.com/artmakarov/simple-data-storage/issues).\n\n\n## License\n\nThis project is [MIT](https://github.com/artmakarov/simple-data-storage/blob/master/LICENSE) licensed.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartmakarov%2Fsimple-data-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartmakarov%2Fsimple-data-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartmakarov%2Fsimple-data-storage/lists"}