Current collected state Current
Observed since 20 Oct, 18:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
1Password Vault Handling in Javascript
1password.js is a library to process 1password Vaults.
You can install via npm:
> npm install 1password-js
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
})
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!
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0Registry latest | 15 Aug 2016 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1fc051c99ea7ad4b08841db21e9668c0f038ac17cf9ace5cce2c40d6b0faf30a