{"author":{"name":"Mark Cavage","email":"mcavage@gmail.com"},"contributors":[{"name":"David Gwynne","email":"loki@animata.net"},{"name":"Yunong Xiao","email":"yunong@joyent.com"}],"name":"asn1","description":"Contains parsers and serializers for ASN.1 (currently BER only)","version":"0.2.2","repository":{"type":"git","url":"git://github.com/mcavage/node-asn1.git"},"main":"lib/index.js","dependencies":{},"devDependencies":{"tap":"0.4.8"},"scripts":{"test":"tap ./tst"},"bugs":{"url":"https://github.com/mcavage/node-asn1/issues"},"homepage":"https://github.com/mcavage/node-asn1","_id":"asn1@0.2.2","dist":{"shasum":"408fcea7db6a668f119c38a9c244fec90061a7ac","tarball":"http://registry-npm.ywwl.com/asn1/download/asn1-0.2.2.tgz","integrity":"sha512-jkhsc2d+w9wCrma14ozbu1zAbNWcAjPIPAdP6PCHGu6JxOaUzcJQKDGgDooItj/O2uSwZEzhgOtTSNCk+jNDYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXC6uBKp9vwX58Eq0v/gTg23v+bPdvrTfdWjLhzejl5AiBUOq/+4rZaeDAEvrkd67R9YV6bZ+qik4f1RFESJ0QkUA=="}],"size":7910,"noattachment":false,"key":"/asn1/-/asn1-0.2.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mcavage","email":"mcavage@gmail.com"},"maintainers":[{"name":"mcavage","email":"mcavage@gmail.com"}],"directories":{},"readme":"node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS.\nCurrently BER encoding is supported; at some point I'll likely have to do DER.\n\n## Usage\n\nMostly, if you're *actually* needing to read and write ASN.1, you probably don't\nneed this readme to explain what and why.  If you have no idea what ASN.1 is,\nsee this: ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc\n\nThe source is pretty much self-explanatory, and has read/write methods for the\ncommon types out there.\n\n### Decoding\n\nThe following reads an ASN.1 sequence with a boolean.\n\n    var Ber = require('asn1').Ber;\n\n    var reader = new Ber.Reader(Buffer.from([0x30, 0x03, 0x01, 0x01, 0xff]));\n\n    reader.readSequence();\n    console.log('Sequence len: ' + reader.length);\n    if (reader.peek() === Ber.Boolean)\n      console.log(reader.readBoolean());\n\n### Encoding\n\nThe following generates the same payload as above.\n\n    var Ber = require('asn1').Ber;\n\n    var writer = new Ber.Writer();\n\n    writer.startSequence();\n    writer.writeBoolean(true);\n    writer.endSequence();\n\n    console.log(writer.buffer);\n\n## Installation\n\n    npm install asn1\n\n## License\n\nMIT.\n\n## Bugs\n\nSee <https://github.com/joyent/node-asn1/issues>.\n","publish_time":1409768955607,"_cnpm_publish_time":1409768955607,"dist-tags":{"latest":"0.2.6"}}