{"_id":"1pwd","_rev":"1-71de8bd4c9c5a9e0d64cf6504fdb7dc5","name":"1pwd","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"1pwd","version":"0.0.1","description":"1Password CLI wrapper","keywords":["1password","cli","api"],"homepage":"https://github.com/deepsweet/1pwd","repository":{"type":"git","url":"git+https://github.com/deepsweet/1pwd.git"},"author":{"name":"Kir Belevich","email":"kir@belevi.ch","url":"https://twitter.com/deepsweet"},"license":"MIT","files":["build/"],"main":"build/index.js","types":"build/index.d.ts","engines":{"node":">=6"},"dependencies":{"@babel/runtime":"^7.0.0-beta.0","decamelize":"^2.0.0","execa":"^0.10.0"},"devDependencies":{"@deepsweet/eslint-config-node-ts":"^0.1.0","@deepsweet/start-preset-node-ts-lib":"^0.2.0","@types/decamelize":"^1.2.0","@types/execa":"^0.9.0","@types/node":"^10.3.1","mocku":"^0.2.1","spyfn":"^0.1.1","tape-promise":"^3.0.0","typescript":"^2.9.1"},"eslintConfig":{"extends":"@deepsweet/eslint-config-node-ts"},"bugs":{"url":"https://github.com/deepsweet/1pwd/issues"},"_id":"1pwd@0.0.1","_npmVersion":"6.2.0","_nodeVersion":"10.6.0","_npmUser":{"name":"deepsweet","email":"kir@belevi.ch"},"dist":{"integrity":"sha512-7IIPhv/Jvj7/Y/fLb5VSgLRL6Y3eOc250lweRFaVUqoCzNuHuVmJzY6TPCVv4dQ88Wijd4s0cNmAFGJtxyNm6g==","shasum":"228cbda8f4c24ba0b016efdb41fb6e0f8ff844a7","tarball":"https://registry.npmjs.org/1pwd/-/1pwd-0.0.1.tgz","fileCount":17,"unpackedSize":6570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbT5j0CRA9TVsSAnZWagAAISYP/10vyLW8Q6aj8eOggYI8\nwjhiKXEyIVJwJb0qLveMXDvyfHbxsJTadMFpcjr+c4QJ7ab3KijAL37njp5U\nodLNjG8XfE9th8zdnUr0rN3g0/CsPCBEpCuLIiM8lF1EzCQeWzEiS3rjuGdF\nxJam41sSgFLC49uVhYd4LP2oIT86ZN+4Q7kHw4Q3aPeMGgTgprgHAritwPEQ\nb8E9T5j9EzVV88jEX8WtdI81PJfUFJUMFVnoBc+pzCY3ip+zbR7a4mMFil2g\new/jvbhZdCBq+SlAGDscLO2Il5++8MamMFCn3X7jgM5QqXA8h8is6CDY/A2T\n09E6AWnOqUzvUTxi6n3LrNkrs9d9lpmZVKd4Hftj7gdFxHMYnUjRR0MzHBeH\nIVMvBZ8uco+XP7/WUvLv+sh/ANX7Ne3ZwMSr3QqaPz8g3YbNytT8iINzwCvy\nnhUnsEeWfGm4y+RRKGQy3WV9SqUzcV3n8cGy9FXqMozr9DVULuaeJLrXgHdI\nw61QI8fsgDT+RKRX/4kE8n9SKh2Xa9ob1Hs2HkqHnogMe4EqAcjr1HrHzVX3\ne85TziRlx9RDOFX6TZOqpSlbHutBZ4gSpnV2nrxr5PCPGKr/2rcpBNefPeZG\nxXVJOuZB/vVCGSjqIAdDlDzsYw4XeqMZ0a8WzXg/Dgb8mk/xozm/yipodUxB\n4jOy\r\n=uYho\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEs8PGOdT4u2HTrZaL/bG0Y+sBkLTPJ+xEuyN7RxA21oAiEAvqSkJ6HqSGoEPRBSKMPpTGxNVt8hqbNFvg+h73cF51U="}]},"maintainers":[{"name":"deepsweet","email":"kir@belevi.ch"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/1pwd_0.0.1_1531943156348_0.5916471833836836"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-18T19:45:56.347Z","0.0.1":"2018-07-18T19:45:56.824Z","modified":"2022-04-04T10:13:23.835Z"},"maintainers":[{"name":"deepsweet","email":"kir@belevi.ch"}],"description":"1Password CLI wrapper","homepage":"https://github.com/deepsweet/1pwd","keywords":["1password","cli","api"],"repository":{"type":"git","url":"git+https://github.com/deepsweet/1pwd.git"},"author":{"name":"Kir Belevich","email":"kir@belevi.ch","url":"https://twitter.com/deepsweet"},"bugs":{"url":"https://github.com/deepsweet/1pwd/issues"},"license":"MIT","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&style=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 >= 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```\n\n## Usage\n\n### `op`\n\n```sh\nop --help\n```\n\n```ts\n(commands: string[], options?: {}) => Promise<string>\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) => Promise<{}>\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) => Promise<string>\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","readmeFilename":"readme.md"}