New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

minivault-core

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minivault-core

A pretty rudimentary vault.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
16
Maintainers
1
Weekly downloads
 
Created
Source

Minivault (Core)

npm Dependencies Build Status Coverage Status JavaScript Standard Style

A pretty rudimentary vault. Keeps a key-value store under ~/.minivault, encrypted with a password.

This package provides the core API. You may also be interested in the Web front end and the RESTful API.

Usage

var Minivault = require('minivault-core')

var vault = new Minivault({secret: 'myMasterPassword'})

vault.get('someKey')
  .then(function (data) {
    console.info('Data for someKey:', data)
  })
  .catch(function (err) {
    console.error(err)
  })

vault.put('someOtherKey', data)
  .then(function () {
    console.info('Data stored')
  })
  .catch(function (err) {
    console.error(err)
  })

vault.delete('uselessKey')
  .then(function () {
    console.info('Key deleted')
  })
  .catch(function (err) {
    console.error(err)
  })

vault.index()
  .then(function (keys) {
    console.info('Keys in vault:', keys)
  })
  .catch(function (err) {
    console.error(err)
  })

A synchronous API is also available. The corresponding functions are getSync, putSync, deleteSync, and indexSync.

Author

Tim De Pauw

License

MIT

Keywords

vault

FAQs

Package last updated on 02 Apr 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