lowdb-nativescript-adapter
A lowdb adapter for using the database from NativeScript apps.
npm i --save lowdb-nativescript-adapter
  • Version: 0.1.0
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  0
    • Last Month: 4

Lowdb NativeScript Adapter

A lowdb adapter for using the database from NativeScript apps.

Installation

Run the following command from the root of your project:

npm install --save lowdb-nativescript-adapter

Example

TypeScript

import * as lowdb from "lowdb";
import * as NativeScriptAdapter from "lowdb-nativescript-adapter";

const adapter = new NativeScriptAdapter('db.json');
const db = lowdb<lowdb.AdapterSync>(adapter);

JavaScript

const lowdb = require("lowdb");
const NativeScriptAdapter = require("lowdb-nativescript-adapter");

const adapter = new NativeScriptAdapter('db.json');
const db = lowdb(adapter);