{"_id":"1password-js","_rev":"3-6d21929bb23e206fee72231c21a2a395","name":"1password-js","description":"1Password Vault Handling in Javascript","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"1password-js","version":"1.0.0","description":"1Password Vault Handling in Javascript","repository":{"type":"git","url":"git+https://github.com/jo-sm/1password.js.git"},"main":"vault.js","scripts":{},"author":{"name":"Joshua Smock"},"license":"MIT","dependencies":{"sqlite3":"^3.1.4"},"gitHead":"5996532613b9fdab2261d20425d71141c3f608f9","bugs":{"url":"https://github.com/jo-sm/1password.js/issues"},"homepage":"https://github.com/jo-sm/1password.js#readme","_id":"1password-js@1.0.0","_shasum":"acf0da030513f9a5e5b674091194e790f562334f","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"joshuasmock","email":"f1144756@mvrht.com"},"dist":{"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="}]},"maintainers":[{"name":"joshuasmock","email":"f1144756@mvrht.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/1password-js-1.0.0.tgz_1471260148218_0.24810402910225093"}}},"readme":"# 1password.js\n\n`1password.js` is a library to process 1password Vaults. \n\n## Installation\n\nYou can install via npm:\n\n```\n> npm install 1password-js\n```\n\n## Usage\n\n`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:\n\n```js\nconst Vault = require('1password-js');\n\n// Somehow we get the master password...\n\nconst vault = new Vault(masterPassword);\n\n// Or, supplying a profile name:\n\nconst vault = new Vault(masterPassword, 'my-special-profile');\n\n// Searching in the Vault\n// `.search` return a Promise that will resolve to the item detail(s)\n// or reject\nvault.search('Github').then(items => {\n\t// The search may have multiple entries\n\tconst password = items[0].itemDetail.fields.find(field => field.designation === 'password').value;\n}).catch(() => {\n\t// There wasn't anything found with that title\n})\n```\n\n## Notes\n\nThis 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!\n\n## License\n\nMIT","maintainers":[{"name":"joshuasmock","email":"f1144756@mvrht.com"}],"time":{"modified":"2022-06-12T14:06:17.829Z","created":"2016-08-15T11:22:31.012Z","1.0.0":"2016-08-15T11:22:31.012Z"},"homepage":"https://github.com/jo-sm/1password.js#readme","repository":{"type":"git","url":"git+https://github.com/jo-sm/1password.js.git"},"author":{"name":"Joshua Smock"},"bugs":{"url":"https://github.com/jo-sm/1password.js/issues"},"license":"MIT","readmeFilename":"README.md"}