Compare commits

..

No commits in common. "master" and "v1.0.1" have entirely different histories.

2 changed files with 13 additions and 39 deletions

View File

@ -1,21 +1,21 @@
# @root/pem # @root/pem
Lightweight, Zero-Dependency PEM encoder and decoder.
Built by [The Root Company](https://therootcompany.com) Built by [The Root Company](https://therootcompany.com)
for [Greenlock](https://greenlock.domains) for [Greenlock](https://greenlock.domains)
and [ACME.js](https://git.rootprojects.org/root/acme.js) and [ACME.js](https://git.rootprojects.org/root/acme.js)
Lightweight, Zero-Dependency PEM encoder and decoder.
| ~300b gzipped | ~300b gzipped
| ~650b minified | ~650b minified
| ~1k full | ~1k full
| |
- [x] Zero Dependencies - [x] VanillaJS
- [x] Zero-Dependency
- [x] Universal Support - [x] Universal Support
- [x] Node.js - [x] Node.js
- [x] Browsers - [x] Browsers
- [x] VanillaJS
This library supports PEM, which is pretty boring on its own. This library supports PEM, which is pretty boring on its own.
@ -76,22 +76,8 @@ but has slightly different code.
## Node (and Webpack) ## Node (and Webpack)
```bash
npm install --save @root/pem
```
```js ```js
var PEM = require('@root/pem'); npm install -g @root/pem
```
```js
// just the packer
var PEM = require('@root/pem/packer');
```
```js
// just the parser
var PEM = require('@root/pem/parser');
``` ```
## Browsers (Vanilla JS) ## Browsers (Vanilla JS)
@ -139,18 +125,8 @@ keys and certificates such as:
# Contributions # Contributions
Did this project save you some time? Maybe make your day? Even save the day?
Please say "thanks" via Paypal or Patreon:
- Paypal: [\$5](https://paypal.me/rootprojects/5) | [\$10](https://paypal.me/rootprojects/10) | Any amount: <paypal@therootcompany.com>
- Patreon: <https://patreon.com/rootprojects>
Where does your contribution go?
[Root](https://therootcompany.com) is a collection of experts [Root](https://therootcompany.com) is a collection of experts
who trust each other and enjoy working together on deep-tech, who trust each other, enjoy working together, and communally share work.
Indie Web projects.
Our goal is to operate as a sustainable community. Our goal is to operate as a sustainable community.
@ -158,8 +134,12 @@ Your contributions - both in code and _especially_ monetarily -
help to not just this project, but also our broader work help to not just this project, but also our broader work
of [projects](https://rootprojects.org) that fuel the **Indie Web**. of [projects](https://rootprojects.org) that fuel the **Indie Web**.
Also, we chat on [Keybase](https://keybase.io) We welcome your support and participation in our community:
in [#rootprojects](https://keybase.io/team/rootprojects)
- Paypal: [\$5](https://paypal.me/rootprojects/5) [\$10](https://paypal.me/rootprojects/10) Any amount: <paypal@therootcompany.com>
- Patreon: <https://patreon.com/rootprojects>
We chat on [Keybase#rootprojects](https://keybase.io/team/rootprojects)
# Commercial Support # Commercial Support

View File

@ -1,17 +1,11 @@
{ {
"name": "@root/pem", "name": "@root/pem",
"version": "1.0.4", "version": "1.0.1",
"description": "VanillaJS, Lightweight, Zero-Dependency, PEM encoder and decoder.", "description": "VanillaJS, Lightweight, Zero-Dependency, PEM encoder and decoder.",
"main": "index.js", "main": "index.js",
"browser": { "browser": {
"./node/native.js": "./browser/native.js" "./node/native.js": "./browser/native.js"
}, },
"files": [
"*.js",
"node",
"browser",
"dist"
],
"scripts": { "scripts": {
"test": "node tests" "test": "node tests"
}, },