{"author":{"name":"Mark Cavage","email":"mcavage@gmail.com"},"name":"asn1","description":"Contains parsers and serializers for ASN.1 (currently BER only)","version":"0.1.7","repository":{"type":"git","url":"git://github.com/mcavage/node-asn1.git"},"main":"lib/index.js","engines":{"node":">=0.4.9"},"dependencies":{},"devDependencies":{"tap":"~0.0.5"},"scripts":{"pretest":"which gjslint; if [[ \"$?\" = 0 ]] ; then  gjslint --nojsdoc -r lib -r tst; else echo \"Missing gjslint. Skipping lint\"; fi","test":"./node_modules/.bin/tap ./tst"},"_npmJsonOpts":{"file":"/Users/mark/.npm/asn1/0.1.7/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"asn1@0.1.7","_engineSupported":true,"_npmVersion":"1.0.18","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"68f70219ea9f57f035bc40507bfb30d14f0f2f62","tarball":"http://registry-npm.ywwl.com/asn1/download/asn1-0.1.7.tgz","integrity":"sha512-6gk/foyseu/GezFwctDxG8QCcCrWwnTAZ/eFslw9QqW9WUmv9NqPouhbef1P5fPc64g5uOB7rvP7AAY+PSBCBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCkx9MlyrAqM3FIP0uVNkusVOtdU1KmJLPKdJgFLomWAIhAK+NQzeGxmVR5FJ19JlQBsVSQM6cl6MtCkpnb9c920fS"}],"size":7256,"noattachment":false,"key":"/asn1/-/asn1-0.1.7.tgz"},"maintainers":[{"name":"mcavage","email":"mcavage@gmail.com"}],"_npmUser":{"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":1323362957462,"_cnpm_publish_time":1323362957462,"dist-tags":{"latest":"0.2.6"}}