{"id":20816231,"url":"https://github.com/dyazincahya/local-storage-array-nativescript","last_synced_at":"2026-02-09T23:03:43.090Z","repository":{"id":85548678,"uuid":"314699670","full_name":"dyazincahya/local-storage-array-nativescript","owner":"dyazincahya","description":"This is a simple Local Storage Array for Nativescript, integrated by application-settings module.","archived":false,"fork":false,"pushed_at":"2022-09-08T06:36:34.000Z","size":43,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T11:02:02.784Z","etag":null,"topics":["application-settings","javascript","local-storage","nativescript","nativescript-8","nativescript-core","nativescript-helper","nativescript-library","storage"],"latest_commit_sha":null,"homepage":"https://dyazincahya.github.io/local-storage-array-nativescript/","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/dyazincahya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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":null,"patreon":null,"open_collective":null,"ko_fi":"kangcahya","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.com/paypalme/dyazincahya"]}},"created_at":"2020-11-21T00:17:01.000Z","updated_at":"2024-07-19T12:45:38.000Z","dependencies_parsed_at":"2023-03-04T07:30:15.358Z","dependency_job_id":null,"html_url":"https://github.com/dyazincahya/local-storage-array-nativescript","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dyazincahya/local-storage-array-nativescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Flocal-storage-array-nativescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Flocal-storage-array-nativescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Flocal-storage-array-nativescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Flocal-storage-array-nativescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyazincahya","download_url":"https://codeload.github.com/dyazincahya/local-storage-array-nativescript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyazincahya%2Flocal-storage-array-nativescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29284757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T21:57:15.303Z","status":"ssl_error","status_checked_at":"2026-02-09T21:57:11.537Z","response_time":56,"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":["application-settings","javascript","local-storage","nativescript","nativescript-8","nativescript-core","nativescript-helper","nativescript-library","storage"],"created_at":"2024-11-17T21:29:13.881Z","updated_at":"2026-02-09T23:03:43.076Z","avatar_url":"https://github.com/dyazincahya.png","language":"JavaScript","funding_links":["https://ko-fi.com/kangcahya","https://www.paypal.com/paypalme/dyazincahya","https://ko-fi.com/K3K02WIPN"],"categories":[],"sub_categories":[],"readme":"[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/K3K02WIPN)\n\n# Local Storage Array for Nativescript\nThis is a simple Local Storage Array for Nativescript, integrated by [application-settings](https://docs.nativescript.org/api-reference/modules#applicationsettings) module. With this you can add some array in localstorage.\n\n## Features\n- get all data or by index\n- insert\n- update\n- remove\n- drop\n\n## Support\n[Nativescript 8](https://nativescript.org) or newer\n\n## Dependency with Module\n[application-settings](https://docs.nativescript.org/api-reference/modules#applicationsettings)\n\n## Documentation\n\n- Put [localstorage_array.js](https://github.com/dyazincahya/local-storage-array-nativescript/blob/main/localstorage_array.js) in App Directory.\n- And Import the [localstorage_array.js](https://github.com/dyazincahya/local-storage-array-nativescript/blob/main/localstorage_array.js) like this :\n\n```typescript\nimport { LSget, LSinsert, LSupdate, LSremove, LSdrop } from '../localstorage_array'\n```\n\u003e you can adjust that Import path if you want\n\n\n### GET\nWith this, you can get all data or get data by index.\n\n##### Method\n```LSget(index, distinct, xkey)```\n\n##### Param Description\n|  Params  | Type    | Default Value | Description                                                                              |\n|----------|---------|---------------|------------------------------------------------------------------------------------------|\n| index    | number  | null          | For get data by index. If you want get all data, you can fill ```null``` for this field. |\n| distinct | boolean | false         | Set ```TRUE``` if you want hide duplicate data in your array.                            |\n| xkey     | String  | lsakc         | Your xkey.                                                                               |\n\n##### Example\n``` javascript\n// you can adjust that Import path\nimport { LSget } from '../localstorage_array'\n\nlet a = LSget();\nif(a.success){\n  console.log(a.data);\n} else {\n  console.log(a.message);\n}\n```\n\n### INSERT\nFor insert new data.\n\n##### Method\n```LSinsert(data, xkey)```\n\n##### Param Description\n|  Params  | Type             | Default Value | Description                                      |\n|----------|------------------|---------------|--------------------------------------------------|\n| data     | json or array    | []            | Add your data here, data must be in json format. |\n| xkey     | String           | lsakc         | You can make new your xkey here.                 |\n\n##### Example\n``` javascript\n// you can adjust that Import path\nimport { LSinsert } from '../localstorage_array'\n\nlet mydata = {\n  \"name\"  : \"kang cahya\",\n  \"hobby\" : \"hiking\",\n  \"color\" : \"blue\"\n};\nlet a = LSinsert(mydata);\nif(a.success){\n  console.log(a.data);\n} else {\n  console.log(a.message);\n}\n```\n\n### UPDATE\nFor update data by index.\n\n##### Method\n```LSupdate(data, index, xkey)```\n\n##### Param Description\n|  Params  | Type    | Default Value | Description                                      |\n|----------|---------|---------------|--------------------------------------------------|\n| data     | json    | {}            | Add your data here, data must be in json format. |\n| index    | number  | 0             | This is a key for update your data.              |\n| xkey     | String  | lsakc         | Your xkey.                                       |\n\n##### Example\n``` javascript\n// you can adjust that Import path\nimport { LSupdate } from '../localstorage_array'\n\nlet mydata = {\n  \"name\"  : \"kang cahya\",\n  \"hobby\" : \"hiking\",\n  \"color\" : \"blue\"\n};\nlet a = LSupdate(mydata, 1);\nif(a.success){\n  console.log(a.data);\n} else {\n  console.log(a.message);\n}\n```\n\n### REMOVE\nFor delete data by index.\n\n##### Method\n```LSremove(index, xkey)```\n\n##### Param Description\n|  Params  | Type    | Default Value | Description                                      |\n|----------|---------|---------------|--------------------------------------------------|\n| index    | number  | 0             | This is a key for delete your data.              |\n| xkey     | String  | lsakc         | Your xkey.                                       |\n\n##### Example\n``` javascript\n// you can adjust that Import path\nimport { LSremove } from '../localstorage_array'\n\nlet a = LSremove(3);\nif(a.success){\n  console.log(a.message);\n} else {\n  console.log(a.message);\n}\n```\n\n### DROP\nWith this, you can delete all data in xkey.\n\n##### Method\n```LSdrop(xkey)```\n\n##### Param Description\n|  Params  | Type    | Default Value | Description                |\n|----------|---------|---------------|----------------------------|\n| xkey     | String  | lsakc         | Your xkey.                 |\n\n##### Example\n``` javascript\n// you can adjust that Import path\nimport { LSdrop } from '../localstorage_array'\n\nlet a = LSdrop(\"your_xkey\");\nif(a.success){\n  console.log(a.message);\n} else {\n  console.log(a.message);\n}\n```\n\n## Author\n[Kang Cahya](https://www.kang-cahya.com/)\n\n## License\n[MIT License](https://github.com/dyazincahya/local-storage-array-nativescript/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyazincahya%2Flocal-storage-array-nativescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyazincahya%2Flocal-storage-array-nativescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyazincahya%2Flocal-storage-array-nativescript/lists"}