Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-loki

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-loki

Thin wrapper around Loki and Loki NativeScript adapter

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

NativeScript Loki

Thin wrapper around Loki and Loki NativeScript adapter

What is Loki

LokiJS is a document oriented database written in javascript, published under MIT License. Its purpose is to store javascript objects as documents in a nosql fashion and retrieve them with a similar mechanism. - LokiJS

Installation

Run the following command from the /app directory of your project:

$ npm install nativescript-loki --save

Usage

// Requirements
var Loki = require("./node_modules/nativescript-loki/nativescript-loki.js");

// Setup Loki
var db = new Loki("loki", { autosave: true });

// Check if database exists
if(db.exists()) {
    console.log("Database exists");
}

// Rename database
db.rename("new-name").then(function() {
    console.log("Database renamed");
});

// Remove database
db.remove().then(function() {
    console.log("Database removed");
});

Thanks

The thanks goes to sect2k who has inspired me to create this package.

To go deeper in Loki have a look at the documentation.

npm version

Keywords

FAQs

Package last updated on 05 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc