Gathering detailed insights and metrics for keychain
Gathering detailed insights and metrics for keychain
Gathering detailed insights and metrics for keychain
Gathering detailed insights and metrics for keychain
npm install keychain
Typescript
Module System
Node Version
NPM Version
99.8
Supply Chain
98.9
Quality
75.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
145 Stars
54 Commits
23 Forks
3 Watchers
2 Branches
10 Contributors
Updated on Jun 05, 2025
Latest Version
1.5.0
Package Id
keychain@1.5.0
Unpacked Size
27.44 kB
Size
5.16 kB
File Count
5
NPM Version
8.6.0
Node Version
18.0.0
Published on
Jun 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This module adds methods for basic Keychain access in Node.js by way of the security
command-line tool.
npm install keychain
1var keychain = require('keychain'); 2 3keychain.setPassword({ account: 'foo', service: 'FooBar', password: 'baz' }, function(err) { 4 keychain.getPassword({ account: 'foo', service: 'FooBar' }, function(err, pass) { 5 console.log('Password is', pass); 6 // Prints: Password is baz 7 }); 8});
1var keychain = require('keychain'); 2 3keychain.setPassword({ account: 'foo', service: 'FooBar.com', type: 'internet', password: 'baz' }, function(err) { 4 keychain.getPassword({ account: 'foo', service: 'FooBar.com', type: 'internet' }, function(err, pass) { 5 console.log('Password is', pass); 6 // Prints: Password is baz 7 }); 8});
The available
1keychain.setPassword(options[, callback]);
2keychain.getPassword(options, callback);
3keychain.deletePassword(options[, callback]);
4keychain.createKeychain(options[, callback]);
5keychain.deleteKeychain(options[, callback]);
6keychain.setDefaultKeychain(options[, callback]);
Available params you can pass to the options object:
Param | Description |
---|---|
account | Specify account name (required) |
service | Specify service name (required) |
password | Specify password to be added (required for setPassword ) |
type | The type of password to get or save. Supported values are generic and internet . See docs. Default: generic |
keychainName | Specify the name of the keychain (required for 'createKeychain' and 'deleteKeychain') |
The following are the major contributors of node-keychain
(in no specific order).
(The MIT License)
Copyright (c) 2013-2023 Nicholas Penree <nick@penree.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
Found 8/14 approved changesets -- score normalized to 5
Reason
5 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More