{"id":20538032,"url":"https://github.com/yoannmoinet/playground.memorycard","last_synced_at":"2026-04-24T03:37:45.531Z","repository":{"id":29959050,"uuid":"33505786","full_name":"yoannmoinet/playground.memorycard","owner":"yoannmoinet","description":":floppy_disk: A plugin for Playground to allow persistence.","archived":false,"fork":false,"pushed_at":"2015-04-07T03:59:36.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-08T10:19:00.212Z","etag":null,"topics":[],"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/yoannmoinet.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":"2015-04-06T21:03:31.000Z","updated_at":"2015-11-22T22:30:47.000Z","dependencies_parsed_at":"2022-07-12T09:23:11.082Z","dependency_job_id":null,"html_url":"https://github.com/yoannmoinet/playground.memorycard","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yoannmoinet/playground.memorycard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannmoinet%2Fplayground.memorycard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannmoinet%2Fplayground.memorycard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannmoinet%2Fplayground.memorycard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannmoinet%2Fplayground.memorycard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoannmoinet","download_url":"https://codeload.github.com/yoannmoinet/playground.memorycard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoannmoinet%2Fplayground.memorycard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32208476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-16T00:43:56.110Z","updated_at":"2026-04-24T03:37:45.514Z","avatar_url":"https://github.com/yoannmoinet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# playground.memorycard\n\nA plugin for [PlaygroundJS](http://playgroundjs.com) to allow persistence.\n\n[![npm version](https://img.shields.io/npm/v/playground.memorycard.svg?style=flat)](http://badge.fury.io/js/playground.memorycard)\n[![bower version](https://img.shields.io/bower/v/playground.memorycard.svg?style=flat)](http://bower.io/search/?q=playground.memorycard)\n\n## Installation\n\nEither\n\n```node\nnpm install --save playground.memorycard\n```\n\nor\n\n```node\nbower install --save playground.memorycard\n```\n\n## Usage\n\nIt is an easy access to LocalStorage.\n\nIt will load defaults from `data/defaults.json` if needed and add them to the localStorage if they're not yet defined.\n\nThe plugin is accessible via `app.memorycard`\n\n```javascript\nvar memory = app.memorycard;\n```\n\n### getAll()\n\nWill return all data stored as an Object.\n\n```javascript\nmemory.getAll();\n```\n\n### save(key, value, overwrite)\n\nWill store the data under 'key' you can also pass an Object, to batch store data.\n\nBy default it doesn't overwrite the data.\n\n```javascript\nmemory.save('test', 'a test string', true);\nmemory.save('test', {'can': 'be an object'}, true); // Will be JSON.stringify\nmemory.save({'test1': 'first', 'test2': 'second'}, true); // Will store 'test1' and 'test2'\n```\n\n### load(key)\n\nWill return the data stored under 'key' or all if no argument is passed.\n\n```javascript\nmemory.load('test'); // {\"can\": \"be an object\"} is JSON.parse\nmemory.load(); // memory.getAll();\n```\n\n### wipe(key)\n\nWill erase the data under 'key' or all if no argument is passed.\n\n```javascript\nmemory.wipe('test');\nmemory.wipe();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoannmoinet%2Fplayground.memorycard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoannmoinet%2Fplayground.memorycard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoannmoinet%2Fplayground.memorycard/lists"}