🚨 Shai-Hulud Strikes Again:More than 500 packages and 700+ versions compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

1pwd

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

1pwd

1Password CLI wrapper

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

1password

FAQs

Package last updated on 18 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts