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

@liteflow/vault

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liteflow/vault

vault

  • 1.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@liteflow/vault

Store securely your information

Installation

npm install @liteflow/vault

Usage

const Vault = require('@liteflow/vault')
const MemoryStore = require('@liteflow/vault/lib/store/memory')
const encryptedStore = new MemoryStore()
const vault = new Vault(encryptedStore)

vault.set('my-key', { foo: 'bar' }, 'my-password')
const data = vault.get('my-key', 'my-password')

Store

@liteflow/vault can use different stores to store your data.

Memory store

This store will not persist any data and keep everything in a map in memory.

const MemoryStore = require('@liteflow/vault/lib/store/memory')
new Vault(new MemoryStore())

File store

This store will persist the values in a json file on disk (only available in node).

const FileStore = require('@liteflow/vault/lib/store/file')
new Vault(new FileStore('./store.json'))

Localstorage

This store is only available on browser and will persist on the localstorage of your browser.

const LocalStorageStore = require('@liteflow/vault/lib/store/file')
new Vault(new LocalStorageStore())

FAQs

Package last updated on 23 Apr 2020

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