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 theme.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 "eol-last": [ "error", "always" ],
65 "semi": [ "warn", "always" ],
66 "quotes": [ "error", "single", { "avoidEscape": true } ],
67 "no-var": [ "warn" ],
68 "comma-dangle": [ "error", "always-multiline" ]
69 },
70 "overrides": [
71 {
72 "files": [ "defs.js" ],
73 "parserOptions": {
74 "ecmaVersion": 2020
75 }
76 }, {
77 "files": [ "test.js", "parseRFC.js", "dumpASN1.js" ],
78 "parserOptions": {
79 "ecmaVersion": 2021
80 },
81 "rules": {
82 "strict": [ "error", "global" ]
83 }
84 }, {
85 "files": [ "oids.js" ],
86 "rules": {
87 "indent": "off",
88 "quotes": [ "warn", "double" ]
89 }
90 }, {
91 "files": [ "tags.js", "rfcdef.js" ],
92 "rules": {
93 "indent": [ "error", 2, { "ignoredNodes": [ "Program > ExpressionStatement > CallExpression > FunctionExpression > BlockStatement > ExpressionStatement[directive='use strict']:first-child" ] } ],
94 "comma-dangle": "off",
95 "quotes": [ "warn", "double" ]
96 }
97 }, {
98 "files": [ "defs.js" ],
99 "parserOptions": {
100 "ecmaVersion": 2021
101 }
102 }, {
103 "files": [ "testDefs.js" ],
104 "parserOptions": {
105 "ecmaVersion": 2022
106 }
107 }
108 ]
109 }
110}