{"id":16294052,"url":"https://github.com/axetroy/stone","last_synced_at":"2025-07-04T08:04:14.640Z","repository":{"id":143735156,"uuid":"90935812","full_name":"axetroy/stone","owner":"axetroy","description":"build data stuck like a stone, Sturdy!","archived":false,"fork":false,"pushed_at":"2019-04-08T12:41:46.000Z","size":103,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-27T02:41:51.372Z","etag":null,"topics":["axetroy","data","stone","stuck"],"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/axetroy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","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}},"created_at":"2017-05-11T04:01:20.000Z","updated_at":"2017-05-14T15:43:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8c392bf-5d3c-4b2e-a693-6c45c884da32","html_url":"https://github.com/axetroy/stone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/axetroy/stone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fstone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fstone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fstone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fstone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axetroy","download_url":"https://codeload.github.com/axetroy/stone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fstone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262704325,"owners_count":23351044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["axetroy","data","stone","stuck"],"created_at":"2024-10-10T20:13:59.097Z","updated_at":"2025-07-04T08:04:14.610Z","avatar_url":"https://github.com/axetroy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## stone.js\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/stone.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/axetroy/stone.svg?branch=master)](https://travis-ci.org/axetroy/stone)\n[![Dependency](https://david-dm.org/axetroy/stone.svg)](https://david-dm.org/axetroy/stone)\n![License](https://img.shields.io/badge/license-MIT-green.svg)\n[![Prettier](https://img.shields.io/badge/Code%20Style-Prettier-green.svg)](https://github.com/prettier/prettier)\n![Node](https://img.shields.io/badge/node-%3E=6.0-blue.svg?style=flat-square)\n[![npm version](https://badge.fury.io/js/@axetroy/stone.svg)](https://badge.fury.io/js/@axetroy/stone)\n \nbuild data stuck like a stone, Sturdy!\n \n## Usage\n\n```bash\n npm install @axetroy/stone\n```\n \n```javascript\nimport Stone from '@axetroy/stone';\n\nconst userInfo = new Stone({username:'axetroy'});\n\n// back\nuserInfo.username = 'admin'; // it will throw an error.\n\n// good\nuserInfo.set('username', 'admin');  // this is ok.\n\nconsole.log(userInfo.username);   // print \"admin\"\n```\n\n## API\n\n### .set(key:string,value:any):this\n\nset a value.\n\n### .remove(key:string):this\n\nremove a key\n\n### .subscribe(func:Function):Function\n\nsubscribe the stone change\n\n### .watch(key:string,func:Function):Function\n\nwatch specify key change, base on ``.subscribe``\n\n### .keys():string[]\n\nreturn the keys list you set\n\n### .values():any[]\n\nreturn the values list you set\n\n- stringify():string\n\nconvert to string, base on ``JSON.stringify()``\n\n## Contributing\n\n```bash\ngit clone https://github.com/axetroy/stone.git\ncd ./stone\nyarn\nyarn run dev\n```\n\n## License\n\nThe [MIT License](https://github.com/axetroy/stone/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Fstone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxetroy%2Fstone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Fstone/lists"}