2.0.0 • Published 4 years ago
kychain v2.0.0
kychain
Store passwords in the macOS Keychain
Installation
npm install kychainUsage
import { get, set, remove } from 'kychain'
await set('hello_world')
const password = await get() // => password = 'hello_world'
await remove()Interface
set(password, account, service, type)
get(account, service, type)
remove(account, service, type)
password: string The password to be stored.
account: string Account under which the password should be stored, defaults to OS username.
service: string The name for the service under which to store the password, defaults to kychain.
type: string The password type can be internet or generic (the default).
License
MIT, keychain access mostly taken from keychain by Nicholas Penree.