lighten the load
This commit is contained in:
parent
7776aaa785
commit
0dc03f86e5
31
README.md
31
README.md
|
@ -14,11 +14,28 @@ This is useful for **certbot** and **letsencrypt**.
|
|||
Install
|
||||
=======
|
||||
|
||||
```
|
||||
# node.js
|
||||
npm install --save rsa-compat
|
||||
node.js
|
||||
|
||||
# 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 < v6** support:
|
||||
|
||||
```bash
|
||||
npm install --save buffer-v6-polyfill
|
||||
```
|
||||
|
||||
### CLI
|
||||
|
||||
```bash
|
||||
npm install --global rsa-compat
|
||||
```
|
||||
|
||||
|
@ -211,3 +228,9 @@ var web64 = RSA.generateCsrDerWeb64(keypair, [ 'example.com', 'www.example.com'
|
|||
|
||||
console.log(web64);
|
||||
```
|
||||
|
||||
ChangeLog:
|
||||
|
||||
* v1.4.0
|
||||
* remove ursa as dependency (just causes confusion), but note in docs
|
||||
* drop node < v6 support
|
||||
|
|
4
node.js
4
node.js
|
@ -5,7 +5,11 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
try {
|
||||
require('buffer-v6-polyfill');
|
||||
} catch(e) {
|
||||
/* ignore */
|
||||
}
|
||||
|
||||
var RSA = {};
|
||||
var NOBJ = {};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"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",
|
||||
"main": "node.js",
|
||||
"bin": {
|
||||
|
@ -39,10 +39,10 @@
|
|||
},
|
||||
"homepage": "https://git.coolaj86.com/coolaj86/rsa-compat.js#readme",
|
||||
"dependencies": {
|
||||
"buffer-v6-polyfill": "^1.0.3",
|
||||
"node-forge": "^0.6.41"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"trulyOptionalDependencies": {
|
||||
"buffer-v6-polyfill": "^1.0.3",
|
||||
"ursa": "^0.9.4"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue