{"id":16754792,"url":"https://github.com/drudge/node-keychain","last_synced_at":"2025-04-04T16:15:03.125Z","repository":{"id":4234215,"uuid":"5357835","full_name":"drudge/node-keychain","owner":"drudge","description":" Basic Keychain Access on Mac computers running Node.js","archived":false,"fork":false,"pushed_at":"2023-06-07T16:13:08.000Z","size":95,"stargazers_count":142,"open_issues_count":1,"forks_count":23,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T13:49:10.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drudge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2012-08-09T16:07:22.000Z","updated_at":"2025-04-01T15:01:18.000Z","dependencies_parsed_at":"2023-07-05T18:02:14.189Z","dependency_job_id":null,"html_url":"https://github.com/drudge/node-keychain","commit_stats":{"total_commits":28,"total_committers":8,"mean_commits":3.5,"dds":0.5357142857142857,"last_synced_commit":"0e9ef7e6257fe670c2ee294b222a84ce77c35e75"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-keychain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-keychain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-keychain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-keychain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drudge","download_url":"https://codeload.github.com/drudge/node-keychain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208150,"owners_count":20901570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T03:06:01.058Z","updated_at":"2025-04-04T16:15:03.107Z","avatar_url":"https://github.com/drudge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Basic Keychain Access on Mac computers running Node.js\n[![Build Status](https://img.shields.io/github/actions/workflow/status/drudge/node-keychain/test.yaml?branch=master)](https://github.com/drudge/node-keychain/actions/workflows/test.yaml)\n\n  This module adds methods for basic Keychain access in Node.js by way of the `security` command-line tool.\n\n## Requirements\n\n * Mac OS X 10.6+\n\n## Installation\n\n    npm install keychain\n\n## Examples\n\n### Generic Password Example\n\n```javascript\nvar keychain = require('keychain');\n\nkeychain.setPassword({ account: 'foo', service: 'FooBar', password: 'baz' }, function(err) {\n  keychain.getPassword({ account: 'foo', service: 'FooBar' }, function(err, pass) {\n    console.log('Password is', pass);\n    // Prints: Password is baz\n  });\n});\n```\n\n### Internet Password Example\n```javascript\nvar keychain = require('keychain');\n\nkeychain.setPassword({ account: 'foo', service: 'FooBar.com', type: 'internet', password: 'baz' }, function(err) {\n  keychain.getPassword({ account: 'foo', service: 'FooBar.com', type: 'internet' }, function(err, pass) {\n    console.log('Password is', pass);\n    // Prints: Password is baz\n  });\n});\n```\n\n## Usage\n\nThe available \n```js\nkeychain.setPassword(options[, callback]);\nkeychain.getPassword(options, callback);\nkeychain.deletePassword(options[, callback]);\nkeychain.createKeychain(options[, callback]);\nkeychain.deleteKeychain(options[, callback]);\nkeychain.setDefaultKeychain(options[, callback]);\n```\n\n### Options\n\nAvailable params you can pass to the options object:\n\n| Param | Description |\n| ----- | ----------- |\n| `account` | Specify account name (required) |\n| `service` | Specify service name (required) |\n| `password` | Specify password to be added (required for `setPassword`) |\n| `type` | The type of password to get or save. Supported values are `generic` and `internet`. See [docs](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/security.1.html). Default: `generic` |\n| `keychainName` | Specify the name of the keychain (required for 'createKeychain' and 'deleteKeychain') |\n\n## Contributors\n\nThe following are the major contributors of `node-keychain` (in no specific order).\n\n  * Nicholas Penree ([drudge](https://github.com/drudge))\n  * Tejesh Mehta ([tjmehta](https://github.com/tjmehta))\n  * Benjamin Hutchins ([benhutchins](https://github.com/benhutchins))\n  * Manuel de la Pena ([mandel-macaque](https://github.com/mandel-macaque))\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2013-2023 Nicholas Penree \u0026lt;nick@penree.com\u0026gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudge%2Fnode-keychain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrudge%2Fnode-keychain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudge%2Fnode-keychain/lists"}