Skip to content
A lowdb adapter for using the database from NativeScript apps
JavaScript
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead of ludwiktrammer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
crypt.js
index.d.ts
index.js
package.json

README.md

Lowdb Encrypted NativeScript Adapter

A lowdb adapter for using the database from NativeScript apps.

All data will be encrypted before save using a autogenerated secret key.

Installation

Run the following command from the root of your project:

npm install --save lowdb-encrypted-nativescript-adapter

Example

TypeScript

import * as lowdb from "lowdb";
import * as NativeScriptEncryptedAdapter from "lowdb-encrypted-nativescript-adapter";

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

JavaScript

const lowdb = require("lowdb");
const NativeScriptEncryptedAdapter = require("lowdb-encrypted-nativescript-adapter");

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

Based from ludwiktrammer/lowdb-nativescript-adapter

You can’t perform that action at this time.