openssl-wrapper
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -6,2 +6,3 @@ 'use strict'; | ||
}); | ||
exports.exec = undefined; | ||
exports.default = exec; | ||
@@ -97,2 +98,4 @@ | ||
} | ||
exports.exec = exec; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "openssl-wrapper", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "NodeJS OpenSSL wrapper", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,2 @@ | ||
# OpenSLL Wrapper | ||
# OpenSSL Wrapper | ||
@@ -14,6 +14,6 @@ [![project status](https://img.shields.io/badge/status-stable-green.svg?style=flat)](https://github.com/mgcrea/node-openssl-wrapper) [![license](https://img.shields.io/github/license/mgcrea/node-openssl-wrapper.svg?style=flat)](https://tldrlegal.com/license/mit-license) [![build status](http://img.shields.io/travis/mgcrea/node-openssl-wrapper/master.svg?style=flat)](http://travis-ci.org/mgcrea/node-openssl-wrapper) [![dependencies status](https://img.shields.io/david/mgcrea/node-openssl-wrapper.svg?style=flat)](https://david-dm.org/mgcrea/node-openssl-wrapper) [![devDependencies status](https://img.shields.io/david/dev/mgcrea/node-openssl-wrapper.svg?style=flat)](https://david-dm.org/mgcrea/node-openssl-wrapper#info=devDependencies) [![coverage status](http://img.shields.io/codeclimate/coverage/github/mgcrea/node-openssl-wrapper.svg?style=flat)](https://codeclimate.com/github/mgcrea/node-openssl-wrapper) [![climate status](https://img.shields.io/codeclimate/github/mgcrea/node-openssl-wrapper.svg?style=flat)](https://codeclimate.com/github/mgcrea/node-openssl-wrapper) | ||
``` javascript | ||
import openssl from 'openssl-wrapper'; | ||
import {exec as openssl} from 'openssl-wrapper'; | ||
const password = 'github'; | ||
return openssl.exec('genrsa', {des3: true, passout: `pass:${password}`, '2048': false}, function(err, buffer) { | ||
return openssl('genrsa', {des3: true, passout: `pass:${password}`, '2048': false}, function(err, buffer) { | ||
console.log(buffer.toString()); | ||
@@ -28,3 +28,3 @@ }); | ||
import openssl from 'openssl-wrapper'; | ||
const opensslAsync = Promise.promisify(openssl); | ||
const opensslAsync = Promise.promisify(openssl.exec); | ||
@@ -31,0 +31,0 @@ // Extract enveloped data |
@@ -86,1 +86,3 @@ | ||
} | ||
export {exec}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23801
176
3
80091