lighten the load

This commit is contained in:
AJ ONeal 2018-06-29 02:39:10 -06:00
parent 7776aaa785
commit 0dc03f86e5
3 changed files with 35 additions and 8 deletions

View File

@ -14,11 +14,28 @@ This is useful for **certbot** and **letsencrypt**.
Install Install
======= =======
``` node.js
# node.js
npm install --save rsa-compat
# CLI ```bash
npm install --save rsa-compat
```
For **more efficient** RSA key generation:
<small>(I dropped `ursa` as an "optional dependency" because the non-fatal error messages on unsupported platforms and node versions were confusing people, but I still recommend installing it)</small>
```bash
npm install --save ursa
```
**Node &lt; v6** support:
```bash
npm install --save buffer-v6-polyfill
```
### CLI
```bash
npm install --global rsa-compat npm install --global rsa-compat
``` ```
@ -211,3 +228,9 @@ var web64 = RSA.generateCsrDerWeb64(keypair, [ 'example.com', 'www.example.com'
console.log(web64); console.log(web64);
``` ```
ChangeLog:
* v1.4.0
* remove ursa as dependency (just causes confusion), but note in docs
* drop node &lt; v6 support

View File

@ -5,7 +5,11 @@
*/ */
'use strict'; 'use strict';
try {
require('buffer-v6-polyfill'); require('buffer-v6-polyfill');
} catch(e) {
/* ignore */
}
var RSA = {}; var RSA = {};
var NOBJ = {}; var NOBJ = {};

View File

@ -1,6 +1,6 @@
{ {
"name": "rsa-compat", "name": "rsa-compat",
"version": "1.3.2", "version": "1.4.0",
"description": "RSA utils that work on Windows, Mac, and Linux with or without C compiler", "description": "RSA utils that work on Windows, Mac, and Linux with or without C compiler",
"main": "node.js", "main": "node.js",
"bin": { "bin": {
@ -39,10 +39,10 @@
}, },
"homepage": "https://git.coolaj86.com/coolaj86/rsa-compat.js#readme", "homepage": "https://git.coolaj86.com/coolaj86/rsa-compat.js#readme",
"dependencies": { "dependencies": {
"buffer-v6-polyfill": "^1.0.3",
"node-forge": "^0.6.41" "node-forge": "^0.6.41"
}, },
"optionalDependencies": { "trulyOptionalDependencies": {
"buffer-v6-polyfill": "^1.0.3",
"ursa": "^0.9.4" "ursa": "^0.9.4"
} }
} }