Socket
Book a DemoInstallSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

@liteflow/vault

vault

1.0.0
unpublished
latest
Source
npmnpm
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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.