JavaScript generic ASN.1 parser (mirror)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 2.0.4 109 lines 3.2 kB view raw
1{ 2 "name": "@lapo/asn1js", 3 "version": "2.0.4", 4 "description": "Generic ASN.1 parser/decoder that can decode any valid ASN.1 DER or BER structures.", 5 "type": "module", 6 "main": "asn1.js", 7 "repository": { 8 "type": "git", 9 "url": "git+https://github.com/lapo-luchini/asn1js.git" 10 }, 11 "keywords": [ "asn1", "ber", "der", "pem" ], 12 "author": "Lapo Luchini <lapo@lapo.it>", 13 "license": "ISC", 14 "bugs": { "url": "https://github.com/lapo-luchini/asn1js/issues" }, 15 "homepage": "https://lapo.it/asn1js/", 16 "files": [ "asn1.js", "base64.js", "hex.js", "int10.js", "defs.js", "oids.js", "rfcdef.js", "dumpASN1.js" ], 17 "scripts": { 18 "lint": "npx eslint asn1.js base64.js hex.js int10.js defs.js oids.js rfcdef.js tags.js context.js index.js parseRFC.js dumpASN1.js test.js testDefs.js vite.config.js", 19 "lint-action": "npx @action-validator/cli .github/workflows/node.js.yml", 20 "build": "vite build", 21 "serve": "echo 'Connect to http://localhost:3000/' ; npx statik --port 3000 .", 22 "test": "node test", 23 "testdefs": "node testDefs" 24 }, 25 "bin": { 26 "dumpASN1": "./dumpASN1.js" 27 }, 28 "engines": { 29 "node": ">=12.20.0" 30 }, 31 "devDependencies": { 32 "eslint": "^8.34.0", 33 "htmlparser2": "^9.1.0", 34 "vite": "^5.2.10", 35 "vite-plugin-dom": "^1.0.3", 36 "vite-plugin-singlefile": "^2.0.1" 37 }, 38 "overrides": { 39 "rollup": "npm:@rollup/wasm-node" 40 }, 41 "pnpm": { 42 "overrides": { 43 "rollup": "npm:@rollup/wasm-node" 44 } 45 }, 46 "eslintConfig": { 47 "env": { 48 "es6": true, 49 "browser": true, 50 "node": true 51 }, 52 "parserOptions": { 53 "ecmaVersion": 2015, 54 "sourceType": "module" 55 }, 56 "extends": [ "eslint:recommended" ], 57 "globals": { 58 "Uint8Array": "readonly" 59 }, 60 "rules": { 61 "strict": [ "error", "function" ], 62 "indent": [ "error", 4 ], 63 "linebreak-style": [ "error", "unix" ], 64 "semi": [ "warn", "always" ], 65 "quotes": [ "error", "single", { "avoidEscape": true } ], 66 "no-var": [ "warn" ], 67 "comma-dangle": [ "error", "always-multiline" ] 68 }, 69 "overrides": [ 70 { 71 "files": [ "defs.js" ], 72 "parserOptions": { 73 "ecmaVersion": 2020 74 } 75 }, { 76 "files": [ "test.js", "parseRFC.js", "dumpASN1.js" ], 77 "parserOptions": { 78 "ecmaVersion": 2021 79 }, 80 "rules": { 81 "strict": [ "error", "global" ] 82 } 83 }, { 84 "files": [ "oids.js" ], 85 "rules": { 86 "indent": "off", 87 "quotes": [ "warn", "double" ] 88 } 89 }, { 90 "files": [ "tags.js", "rfcdef.js" ], 91 "rules": { 92 "indent": [ "error", 2, { "ignoredNodes": [ "Program > ExpressionStatement > CallExpression > FunctionExpression > BlockStatement > ExpressionStatement[directive='use strict']:first-child" ] } ], 93 "comma-dangle": "off", 94 "quotes": [ "warn", "double" ] 95 } 96 }, { 97 "files": [ "defs.js" ], 98 "parserOptions": { 99 "ecmaVersion": 2021 100 } 101 }, { 102 "files": [ "testDefs.js" ], 103 "parserOptions": { 104 "ecmaVersion": 2022 105 } 106 } 107 ] 108 } 109}