0.0.1 • Published 6 years ago
exec-pgp v0.0.1
exec-pgp
==========
executes gpg decrypt and returns (promisified) output as part of an object
Examples
const { decrypt } = require('exec-pgp')
As a promise
decrypt('<path-to-file>')
.then(result => {
console.log(`result.output`)
})
.catch(e => {
console.error(e)
})
As a callback function
decrypt('<path-to-file>', (e, result) => {
if (e) {
console.error(e)
} else {
console.log(`result.output`)
}
})
License
MIT
0.0.1
6 years ago