79f0b054f778e13f6a6634806e1907699dba50b1
[platform/upstream/nodejs.git] / deps / npm / node_modules / request / node_modules / http-signature / node_modules / asn1 / package.json
1 {
2   "author": {
3     "name": "Mark Cavage",
4     "email": "mcavage@gmail.com"
5   },
6   "contributors": [
7     {
8       "name": "David Gwynne",
9       "email": "loki@animata.net"
10     },
11     {
12       "name": "Yunong Xiao",
13       "email": "yunong@joyent.com"
14     }
15   ],
16   "name": "asn1",
17   "description": "Contains parsers and serializers for ASN.1 (currently BER only)",
18   "version": "0.1.11",
19   "repository": {
20     "type": "git",
21     "url": "git://github.com/mcavage/node-asn1.git"
22   },
23   "main": "lib/index.js",
24   "engines": {
25     "node": ">=0.4.9"
26   },
27   "dependencies": {},
28   "devDependencies": {
29     "tap": "0.1.4"
30   },
31   "scripts": {
32     "pretest": "which gjslint; if [[ \"$?\" = 0 ]] ; then  gjslint --nojsdoc -r lib -r tst; else echo \"Missing gjslint. Skipping lint\"; fi",
33     "test": "./node_modules/.bin/tap ./tst"
34   },
35   "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(new Buffer([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/mcavage/node-asn1/issues>.\n",
36   "readmeFilename": "README.md",
37   "bugs": {
38     "url": "https://github.com/mcavage/node-asn1/issues"
39   },
40   "homepage": "https://github.com/mcavage/node-asn1",
41   "_id": "asn1@0.1.11",
42   "_from": "asn1@0.1.11"
43 }