Skip to content

A Node script for setting and getting a secret via macOS KeyChain

Notifications You must be signed in to change notification settings

TomasHubelbauer/node-keychain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node KeyChain

This repository contains a Node script for setting and getting a secret value from the macOS KeyChain.

Installation

Git

git submodule add https://github.com/tomashubelbauer/node-keychain

NPM

npm i tomashubelbauer/node-keychain

Usage

setSecret

await setSecret('account', 'service', 'password');

This method will fail if the secret is already set.

getSecret

const secret = await getSecret('account', 'service');

About

A Node script for setting and getting a secret via macOS KeyChain

Topics

Resources

Stars

Watchers

Forks