1 | {
|
---|
2 | "name": "lowlight",
|
---|
3 | "version": "1.20.0",
|
---|
4 | "description": "Virtual syntax highlighting for virtual DOMs and non-HTML things",
|
---|
5 | "license": "MIT",
|
---|
6 | "keywords": [
|
---|
7 | "syntax",
|
---|
8 | "code",
|
---|
9 | "ast",
|
---|
10 | "virtual",
|
---|
11 | "dom",
|
---|
12 | "highlight",
|
---|
13 | "highlighting"
|
---|
14 | ],
|
---|
15 | "repository": "wooorm/lowlight",
|
---|
16 | "bugs": "https://github.com/wooorm/lowlight/issues",
|
---|
17 | "funding": {
|
---|
18 | "type": "github",
|
---|
19 | "url": "https://github.com/sponsors/wooorm"
|
---|
20 | },
|
---|
21 | "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
---|
22 | "contributors": [
|
---|
23 | "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
---|
24 | "Ezra Lalonde <ezra@usefuliftrue.com>",
|
---|
25 | "Shu Uesugi <shu@chibicode.com>"
|
---|
26 | ],
|
---|
27 | "files": [
|
---|
28 | "index.js",
|
---|
29 | "lib/core.js"
|
---|
30 | ],
|
---|
31 | "dependencies": {
|
---|
32 | "fault": "^1.0.0",
|
---|
33 | "highlight.js": "~10.7.0"
|
---|
34 | },
|
---|
35 | "devDependencies": {
|
---|
36 | "browserify": "^17.0.0",
|
---|
37 | "chalk": "^4.0.0",
|
---|
38 | "nyc": "^15.0.0",
|
---|
39 | "prettier": "^2.0.0",
|
---|
40 | "rehype": "^11.0.0",
|
---|
41 | "remark-cli": "^9.0.0",
|
---|
42 | "remark-preset-wooorm": "^8.0.0",
|
---|
43 | "tape": "^5.0.0",
|
---|
44 | "tinyify": "^3.0.0",
|
---|
45 | "unist-util-remove-position": "^3.0.0",
|
---|
46 | "xo": "^0.38.0"
|
---|
47 | },
|
---|
48 | "scripts": {
|
---|
49 | "generate": "node script/build-registry",
|
---|
50 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
---|
51 | "build-bundle": "browserify index.js -s lowlight > lowlight.js",
|
---|
52 | "build-mangle": "browserify index.js -s lowlight -p tinyify > lowlight.min.js",
|
---|
53 | "build": "npm run build-bundle && npm run build-mangle",
|
---|
54 | "test-api": "node test",
|
---|
55 | "test-coverage": "nyc --reporter lcov tape test/index.js",
|
---|
56 | "test": "npm run generate && npm run format && npm run build && npm run test-coverage"
|
---|
57 | },
|
---|
58 | "prettier": {
|
---|
59 | "tabWidth": 2,
|
---|
60 | "useTabs": false,
|
---|
61 | "singleQuote": true,
|
---|
62 | "bracketSpacing": false,
|
---|
63 | "semi": false,
|
---|
64 | "trailingComma": "none"
|
---|
65 | },
|
---|
66 | "xo": {
|
---|
67 | "prettier": true,
|
---|
68 | "esnext": false,
|
---|
69 | "rules": {
|
---|
70 | "unicorn/no-array-callback-reference": "off",
|
---|
71 | "unicorn/no-fn-reference-in-iterator": "off",
|
---|
72 | "unicorn/prefer-optional-catch-binding": "off",
|
---|
73 | "unicorn/prefer-includes": "off",
|
---|
74 | "guard-for-in": "off"
|
---|
75 | },
|
---|
76 | "ignores": [
|
---|
77 | "lowlight.js"
|
---|
78 | ]
|
---|
79 | },
|
---|
80 | "remarkConfig": {
|
---|
81 | "plugins": [
|
---|
82 | "preset-wooorm"
|
---|
83 | ]
|
---|
84 | },
|
---|
85 | "nyc": {
|
---|
86 | "check-coverage": true,
|
---|
87 | "lines": 100,
|
---|
88 | "functions": 100,
|
---|
89 | "branches": 100
|
---|
90 | }
|
---|
91 | }
|
---|