Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by16.67%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc