diff --git a/README.md b/README.md index 2208210..2ec01a3 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,13 @@ -node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS. -Currently BER encoding is supported; at some point I'll likely have to do DER. +# `@ldapjs/asn1` -## Usage - -Mostly, if you're *actually* needing to read and write ASN.1, you probably don't -need this readme to explain what and why. If you have no idea what ASN.1 is, -see this: ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc - -The source is pretty much self-explanatory, and has read/write methods for the -common types out there. +`@ldapjs/asn1` is a library for encoding and decoding ASN.1 datatypes in pure +JS. Currently BER encoding is supported. ### Decoding The following reads an ASN.1 sequence with a boolean. - var Ber = require('asn1').Ber; + var Ber = require('@ldapjs/asn1').Ber; var reader = new Ber.Reader(Buffer.from([0x30, 0x03, 0x01, 0x01, 0xff])); @@ -27,7 +20,7 @@ The following reads an ASN.1 sequence with a boolean. The following generates the same payload as above. - var Ber = require('asn1').Ber; + var Ber = require('@ldapjs/asn1').Ber; var writer = new Ber.Writer(); @@ -41,10 +34,6 @@ The following generates the same payload as above. npm install asn1 -## License - -MIT. - ## Bugs -See . +See . diff --git a/lib/index.js b/lib/index.js index 17f1761..d5d3d02 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,7 +1,7 @@ // Copyright 2011 Mark Cavage All rights reserved. // If you have no idea what ASN.1 or BER is, see this: -// ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc +// https://web.archive.org/web/20220314051854/http://luca.ntop.org/Teaching/Appunti/asn1.html const Ber = require('./ber/index') diff --git a/package.json b/package.json index 4760653..362807f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ ], "name": "@ldapjs/asn1", "description": "Contains parsers and serializers for ASN.1 (currently BER only)", - "version": "1.0.0", + "version": "1.0.1", "repository": { "type": "git", "url": "git://github.com/ldapjs/asn1.git"