{"id":26665323,"url":"https://github.com/elsehow/async-storage-tree","last_synced_at":"2025-03-25T17:36:50.925Z","repository":{"id":57185829,"uuid":"138122062","full_name":"elsehow/async-storage-tree","owner":"elsehow","description":"[WIP] Use React's async-storage to create a tree of objects","archived":false,"fork":false,"pushed_at":"2018-06-23T18:52:48.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T22:02:54.836Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elsehow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-21T05:11:31.000Z","updated_at":"2018-06-23T18:52:50.000Z","dependencies_parsed_at":"2022-09-06T04:11:53.504Z","dependency_job_id":null,"html_url":"https://github.com/elsehow/async-storage-tree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsehow%2Fasync-storage-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsehow%2Fasync-storage-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsehow%2Fasync-storage-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsehow%2Fasync-storage-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elsehow","download_url":"https://codeload.github.com/elsehow/async-storage-tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245511366,"owners_count":20627376,"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":[],"created_at":"2025-03-25T17:36:50.179Z","updated_at":"2025-03-25T17:36:50.912Z","avatar_url":"https://github.com/elsehow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# async-storage-tree\n\nUse React's [async-storage](https://facebook.github.io/react-native/docs/asyncstorage.html)\nto create a tree of objects.\n\n**WIP** - Use at your own peril!\n\n## install\n\n`npm install async-storage-tree`\n\n## example\n\n```js\n// TODO\n```\n\n## api\n\n- `createRoot(obj): Promise`\n\nSet obj as the root.\nAny existing items in `asyncStorage` will go untouched.\n\nNOTE - If there is an existing root, its children will be orphaned! We\nrecommend to .removeChild() first. (If no arguments are passde to\nremoveChild(), the whole tree will be removed, including children of the\nroot).\n\n- `getRoot(): Promise[Object]`\n\nGets root of tree, returns a Promise.\n\n- `createChild(obj, parentId): Promise`\n\nCreate `obj` as a new child of the leaf node with a given `id`.\nIf no `id` is specified, will create child of the root node.\n\n- `getChildren(id): Promise[List[Object]]`\n\nGet children of node with `id`.\nIf no `id` specified, gets the children of the root node.\n\n- `removeChild(id): Promise`\n\nRecursively delete nodes (i.e., id and all children).\n*TODO:TEST THIS!* If no `id` specified, will remove the entire tree.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felsehow%2Fasync-storage-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felsehow%2Fasync-storage-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felsehow%2Fasync-storage-tree/lists"}