Compare commits

...

2 Commits

Author SHA1 Message Date
fa640d7b77 export the stuff, duh 2018-11-21 01:23:37 -07:00
dd778848f9 doc formatting 2018-11-20 00:52:17 -07:00
3 changed files with 10 additions and 5 deletions

View File

@ -26,11 +26,14 @@ with nested structures.
There are only 3 methods needed to support all of the X.509 schemas
that most of us care about, and so that's all this library has:
```js
ASN1(type, hex1, hex2, ...)
ASN1.UInt(hex1, hex2, ...)
ASN1.BitStr(hex1, hex2, ...)
* ASN1(type, hex1, hex2, ...)
* ASN1.UInt(hex1, hex2, ...)
* ASN1.BitStr(hex1, hex2, ...)
* (helper) ASN1.numToHex(num)
/*helper*/
ASN1.numToHex(num)
```
Most ASN.1 types follow the same rules:

View File

@ -65,3 +65,5 @@ ASN1.numToHex = function (d) {
}
return d;
};
module.exports = ASN1;

View File

@ -1,6 +1,6 @@
{
"name": "uasn1",
"version": "0.7.0",
"version": "0.7.1",
"description": "An insanely minimal ASN.1 builder for X.509 common schemas, specifically SEC1/X9.62 PKCS#8, SPKI/PKIX, PKCS#1 and CSR.",
"homepage": "https://git.coolaj86.com/coolaj86/uasn1.js",
"main": "index.js",