{"id":16693856,"url":"https://github.com/deepsweet/1pwd","last_synced_at":"2025-07-30T14:04:48.099Z","repository":{"id":57092894,"uuid":"141482649","full_name":"deepsweet/1pwd","owner":"deepsweet","description":"🔑 1Password CLI wrapper","archived":false,"fork":false,"pushed_at":"2019-05-10T20:34:33.000Z","size":102,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T19:31:35.530Z","etag":null,"topics":["1password","1password-cli","api","password-manager"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepsweet.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-18T19:46:10.000Z","updated_at":"2023-05-04T11:47:31.000Z","dependencies_parsed_at":"2022-08-22T21:40:31.498Z","dependency_job_id":null,"html_url":"https://github.com/deepsweet/1pwd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsweet%2F1pwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsweet%2F1pwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsweet%2F1pwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepsweet%2F1pwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepsweet","download_url":"https://codeload.github.com/deepsweet/1pwd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248138238,"owners_count":21053837,"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":["1password","1password-cli","api","password-manager"],"created_at":"2024-10-12T16:32:41.852Z","updated_at":"2025-04-10T01:21:45.780Z","avatar_url":"https://github.com/deepsweet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1pwd\n\n[![npm](https://img.shields.io/npm/v/1pwd.svg?style=flat-square)](https://www.npmjs.com/package/1pwd) [![tests](https://img.shields.io/travis/deepsweet/1pwd/master.svg?label=tests\u0026style=flat-square)](https://travis-ci.org/deepsweet/1pwd) [![coverage](https://img.shields.io/codecov/c/github/deepsweet/1pwd.svg?style=flat-square)](https://codecov.io/github/deepsweet/1pwd)\n\n[1Password CLI](https://blog.agilebits.com/2017/09/06/announcing-the-1password-command-line-tool-public-beta/) wrapper.\n\n## Requirements\n\n* Node.js \u003e= 6\n* [`esm` loader](https://github.com/standard-things/esm)\n* Official [1Password `op` CLI](https://support.1password.com/command-line-getting-started/#set-up-the-command-line-tool)\n* [`op signin`](https://support.1password.com/command-line-getting-started/#get-started-with-the-command-line-tool) with exported session token\n\n## Install\n\n```sh\n$ yarn add 1pwd\n# or\n$ npm install 1pwd\n```\n\n## Usage\n\n### `op`\n\n```sh\nop --help\n```\n\n```ts\n(commands: string[], options?: {}) =\u003e Promise\u003cstring\u003e\n```\n\n```js\nimport { op } from '1pwd'\n\nconst result = await op(['list', 'vaults'])\n// unparsed stdout as is\n```\n\n### `getItem`\n\n```sh\nop get item --help\n```\n\n```ts\n(item: string, options?: {}) =\u003e Promise\u003c{}\u003e\n```\n\n```js\nimport { getItem } from '1pwd'\n\nconst result = await getItem('item', {\n  vault: 'vault',\n  includeTrash: true\n})\n// parsed JSON\n```\n\n### `getTotp`\n\n```sh\nop get totp --help\n```\n\n```ts\n(item: string) =\u003e Promise\u003cstring\u003e\n```\n\n```js\nimport { getTotp } from '1pwd'\n\nconst result = await getTotp('item')\n// string\n```\n\n## TODO\n\n* check for session token and handle `op signin`\n* wrap more `op` CLI commands\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepsweet%2F1pwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepsweet%2F1pwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepsweet%2F1pwd/lists"}