Socket
Socket
Sign inDemoInstall

@arcblock/did-auth-storage-nedb

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcblock/did-auth-storage-nedb

Storage engine that uses nedb for did-auth


Version published
Weekly downloads
430
increased by47.26%
Maintainers
4
Weekly downloads
 
Created
Source

did-auth-storage-nedb

styled with prettier

Storage engine that uses nedb to store data, implements interfaces defined in @arcblock/did-auth-storage.

Table of Contents

Install

npm install @arcblock/did-auth-storage-nedb
// or
yarn add @arcblock/did-auth-storage-nedb

Usage

const DiskStorage = require('@arcblock/did-auth-storage-nedb');

const storage = new DiskStorage({
  dbPath: '/path/to/db',
});

// Listen on events of the storage
storage.on('create', d => console.log('create', d));
storage.on('update', d => console.log('update', d));
storage.on('destroy', d => console.log('destroy', d));

(async () => {
  const token = '123456';
  const item = await storage.create(token);
})();

Contributors

NameWebsite
wangshijunhttps://ocap.arcblock.io

Keywords

FAQs

Package last updated on 17 Mar 2021

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