Catalog npm
PACKAGE EXPLORERView in registry

1password-js

npm

1Password Vault Handling in Javascript

Versions collected1
Direct dependencies1From release 1.0.0
Last observed20 Oct, 18:35 UTC

README

Current package documentation

1password.js

1password.js is a library to process 1password Vaults.

Installation

You can install via npm:

> npm install 1password-js

Usage

1password.js exposes a class that is instantiated with the vault master password and optionally, the profile name, and can be searched with the search method:

const Vault = require('1password-js');

// Somehow we get the master password...

const vault = new Vault(masterPassword);

// Or, supplying a profile name:

const vault = new Vault(masterPassword, 'my-special-profile');

// Searching in the Vault
// `.search` return a Promise that will resolve to the item detail(s)
// or reject
vault.search('Github').then(items => {
	// The search may have multiple entries
	const password = items[0].itemDetail.fields.find(field => field.designation === 'password').value;
}).catch(() => {
	// There wasn't anything found with that title
})

Notes

This only currently works on Mac. If you have the location of the vault sqlite database on other systems, create an issue and I'll add it!

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.0Registry latest15 Aug 20161

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
jo-sm/1password.js

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:35 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1fc051c99ea7ad4b08841db21e9668c0f038ac17cf9ace5cce2c40d6b0faf30a