From 0f411e4ae7dbe571cbbee6907ac791e6f8567db6 Mon Sep 17 00:00:00 2001 From: Ryer Wong Date: Wed, 3 Aug 2016 15:58:27 +0800 Subject: [PATCH] bad example code Look up the [default](https://github.com/mgcrea/node-openssl-wrapper/blob/master/src/index.js#L17) exported thing in your source code, it's the `exec` function, so can not resolve `openssl.exec`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce0dd94..f4bf421 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ return openssl('genrsa', {des3: true, passout: `pass:${password}`, '2048': false ``` javascript import Promise from 'bluebird'; import openssl from 'openssl-wrapper'; -const opensslAsync = Promise.promisify(openssl.exec); +const opensslAsync = Promise.promisify(openssl); // Extract enveloped data return opensslAsync('cms.verify', signedData, {inform: 'DER', noverify: true})