Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

1password-js

1Password Vault Handling in Javascript

Published15 Aug 2016
Direct dependencies1
Transitive dependenciesNot calculated

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.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
sqlite3
Environment
{
  "local_name": "sqlite3",
  "alias": false,
  "peer_metadata": null
}
^3.1.4runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "acf0da030513f9a5e5b674091194e790f562334f",
  "tarball": "https://registry.npmjs.org/1password-js/-/1password-js-1.0.0.tgz",
  "integrity": "sha512-dSbR3VknEqL0Yh/ntxyv9oCh8HnS3BQgonUZLay+3s1ZB8AZcHfR9Mmfix5ZW5tf1OcHS+H/PNuwKwtgK4sRUQ==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCICWkDECbRd9NZfcbLwomx0y+1L2dBYjGCEaR3ZkbYkA4AiEAwnVH1rjU5Cty7slfs7b5W6T/GOjXwG0p6bdue4dqE4A="
    }
  ]
}

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_version:af41b1d29b3bad6c9764fc390c9a8a3e142ca440e91c053b25ebe3813a3f4428

Other collected versions

View all collected versions →