1{
2 "name": "@lapo/asn1js",
3 "version": "2.0.1",
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", "oids.js" ],
17 "scripts": {
18 "lint": "npx eslint asn1.js base64.js hex.js int10.js oids.js tags.js index.js parseRFC.js dumpASN1.js",
19 "lint-action": "npx @action-validator/cli .github/workflows/node.js.yml",
20 "serve": "echo 'Connect to http://localhost:3000/' ; npx statik --port 3000 .",
21 "test": "node test"
22 },
23 "engines": {
24 "node": ">=12.20.0"
25 },
26 "devDependencies": {
27 "eslint": "^8.34.0"
28 },
29 "eslintConfig": {
30 "env": {
31 "es6": true,
32 "browser": true,
33 "node": true
34 },
35 "parserOptions": {
36 "ecmaVersion": 2015,
37 "sourceType": "module"
38 },
39 "extends": [ "eslint:recommended" ],
40 "globals": {
41 "Uint8Array": "readonly"
42 },
43 "rules": {
44 "strict": [ "error", "function" ],
45 "indent": [ "error", 4 ],
46 "linebreak-style": [ "error", "unix" ],
47 "semi": [ "warn", "always" ],
48 "quotes": [ "error", "single", { "avoidEscape": true } ],
49 "no-var": [ "warn" ],
50 "comma-dangle": [ "error", "always-multiline" ]
51 },
52 "overrides": [
53 {
54 "files": [ "defs.js" ],
55 "parserOptions": {
56 "ecmaVersion": 2020
57 }
58 }, {
59 "files": [ "test.js", "parseRFC.js", "dumpASN1.js" ],
60 "parserOptions": {
61 "ecmaVersion": 2021
62 },
63 "rules": {
64 "strict": [ "error", "global" ]
65 }
66 }, {
67 "files": [ "oids.js" ],
68 "rules": {
69 "indent": "off",
70 "quotes": [ "warn", "double" ]
71 }
72 }, {
73 "files": [ "tags.js", "rfcdef.js" ],
74 "rules": {
75 "indent": [ "error", 2, { "ignoredNodes": [ "Program > ExpressionStatement > CallExpression > FunctionExpression > BlockStatement > ExpressionStatement[directive='use strict']:first-child" ] } ],
76 "comma-dangle": "off",
77 "quotes": [ "warn", "double" ]
78 }
79 }, {
80 "files": [ "defs.js" ],
81 "parserOptions": {
82 "ecmaVersion": 2021
83 }
84 }
85 ]
86 }
87}