local-credential-storage
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

local-credential-storage

version license build code style

A light wrapper around LocalStorage, for storing credentials.

Usage

import LocalCredentialStorage from 'local-credential-storage'

const credentials = new LocalCredentialStorage('com.myapp')

// Check and get for saved credentials.
if (credentials.isSet) {
  const { username, password } = credentials.get()
}

// Save new credentials.
credentials.set('someuser', 'somepass')

Acknowledgements

This little bit of code was developed at Body Labs by Paul Melnikow and later open sourced. Thanks to a repository and package transfer from Body Labs, it's being maintained by the original author.

License

This project is licensed under the 2-clause BSD license.

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i local-credential-storage

    Weekly Downloads

    35

    Version

    4.0.0

    License

    BSD-2-Clause

    Unpacked Size

    5.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • paulmelnikow