{"id":18135496,"url":"https://github.com/whitfin/lowdb-titanium-adapter","last_synced_at":"2025-04-19T13:57:14.924Z","repository":{"id":57154078,"uuid":"188508853","full_name":"whitfin/lowdb-titanium-adapter","owner":"whitfin","description":"Titanium SDK adapter for the LowDB embedded database","archived":false,"fork":false,"pushed_at":"2019-05-30T00:35:25.000Z","size":8366,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T22:32:20.019Z","etag":null,"topics":["database","json","mobile","nosql","titanium-mobile","titanium-sdk"],"latest_commit_sha":null,"homepage":null,"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/whitfin.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":"2019-05-25T01:56:15.000Z","updated_at":"2019-05-30T00:35:18.000Z","dependencies_parsed_at":"2022-09-06T10:51:10.882Z","dependency_job_id":null,"html_url":"https://github.com/whitfin/lowdb-titanium-adapter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitfin%2Flowdb-titanium-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitfin%2Flowdb-titanium-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitfin%2Flowdb-titanium-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitfin%2Flowdb-titanium-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whitfin","download_url":"https://codeload.github.com/whitfin/lowdb-titanium-adapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819405,"owners_count":21166477,"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":["database","json","mobile","nosql","titanium-mobile","titanium-sdk"],"created_at":"2024-11-01T14:07:53.778Z","updated_at":"2025-04-19T13:57:14.906Z","avatar_url":"https://github.com/whitfin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lowdb-titanium-adapter\n[![Build Status](https://img.shields.io/travis/whitfin/lowdb-titanium-adapter.svg?label=unix)](https://travis-ci.org/whitfin/lowdb-titanium-adapter)\n![npm](https://img.shields.io/npm/v/lowdb-titanium-adapter.svg)\n\nTitanium SDK adapter for the [LowDB](https://github.com/typicode/lowdb)\nembedded database.\n\nYou can use this library to persist LowDB databases inside Titanium applications\nusing the Titanium API. Everything else operates normally as LowDB would do in\nany other environment, so see their repository for further information.\n\n### Usage\n\nThis module is on npm, so feel free to grab from there (as well as lowdb):\n\n```shell\n$ npm i lowdb lowdb-titanium-adapter\n```\n\nYou can then configure it inside your application pretty easily, as the\nAPI is still synchronous for the time being:\n\n```javascript\n// Load our modules\nconst low = require('lowdb');\nconst TitaniumAdapter = require('lowdb-titanium-adapter');\n\n// Initialize the database to write to my-database.json\nconst adapter = new TitaniumAdapter('my-database.json', {\n  // Describe the default schema.\n  //\n  // This will be used as the \"base\" state for your database. See the\n  // LowDB documentation for more information. You can also handle this\n  // by calling the `defaults()` method on your database instance.\n  defaultValue: {\n\n  },\n});\n\n// Create the database instance.\n//\n// This requires an async context, so you need to use a function\n// as shown below until we can use `await` in the main `app.js`.\nlet db; (async () =\u003e db = await low(adapter));\n```\n\nThere is also a more complete [example app](example/) available - just\nremember to run `npm install` before you try to run it. For any further\nusage, check out the [LowDB](https://github.com/typicode/lowdb) docs as\nthe API is exactly the same.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitfin%2Flowdb-titanium-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhitfin%2Flowdb-titanium-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitfin%2Flowdb-titanium-adapter/lists"}