1pwd
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

1pwd

npm tests coverage

1Password CLI wrapper.

Requirements

Install

$ yarn add 1pwd

Usage

op

op --help
(commands: string[], options?: {}) => Promise<string>
import { op } from '1pwd'
 
const result = await op(['list', 'vaults'])
// unparsed stdout as is

getItem

op get item --help
(item: string) => Promise<{}>
import { getItem } from '1pwd'
 
const result = await getItem('item', {
  vault: 'vault',
  includeTrash: true
})
// parsed JSON

getTotp

op get totp --help
(item: string) => Promise<string>
import { getTotp } from '1pwd'
 
const result = await getTotp('item')
// string

TODO

  • check for session token and handle op signin
  • wrap more op CLI commands

Readme

Keywords

Package Sidebar

Install

npm i 1pwd

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

6.57 kB

Total Files

17

Last publish

Collaborators

  • deepsweet