UNPKG

2.77 kBJSONView Raw
1{
2 "name": "hast-util-sanitize",
3 "version": "5.0.0",
4 "description": "hast utility to sanitize nodes",
5 "license": "MIT",
6 "keywords": [
7 "unist",
8 "hast",
9 "hast-util",
10 "util",
11 "utility",
12 "html",
13 "clean",
14 "xss",
15 "safe",
16 "sanitize"
17 ],
18 "repository": "syntax-tree/hast-util-sanitize",
19 "bugs": "https://github.com/syntax-tree/hast-util-sanitize/issues",
20 "funding": {
21 "type": "opencollective",
22 "url": "https://opencollective.com/unified"
23 },
24 "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
25 "contributors": [
26 "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
27 "Jason Switzer <jswitzer@gmail.com>"
28 ],
29 "sideEffects": false,
30 "type": "module",
31 "exports": "./index.js",
32 "files": [
33 "lib/",
34 "index.d.ts",
35 "index.js"
36 ],
37 "dependencies": {
38 "@types/hast": "^3.0.0",
39 "@ungap/structured-clone": "^1.2.0",
40 "unist-util-position": "^5.0.0"
41 },
42 "devDependencies": {
43 "@types/node": "^20.0.0",
44 "@types/ungap__structured-clone": "^0.3.0",
45 "aria-attributes": "^2.0.0",
46 "c8": "^8.0.0",
47 "deepmerge": "^4.0.0",
48 "hast-util-from-html": "^1.0.0",
49 "hast-util-to-html": "^8.0.0",
50 "hastscript": "^8.0.0",
51 "html-element-attributes": "^3.0.0",
52 "html-tag-names": "^2.0.0",
53 "prettier": "^3.0.0",
54 "remark-cli": "^11.0.0",
55 "remark-preset-wooorm": "^9.0.0",
56 "type-coverage": "^2.0.0",
57 "typescript": "^5.0.0",
58 "unist-builder": "^4.0.0",
59 "unist-util-visit": "^5.0.0",
60 "xo": "^0.55.0"
61 },
62 "scripts": {
63 "prepack": "npm run build && npm run format",
64 "build": "tsc --build --clean && tsc --build && type-coverage",
65 "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
66 "test-api": "node --conditions development test/index.js",
67 "test-coverage": "c8 --100 --reporter lcov npm run test-api",
68 "test": "npm run build && npm run format && npm run test-coverage"
69 },
70 "prettier": {
71 "bracketSpacing": false,
72 "semi": false,
73 "singleQuote": true,
74 "tabWidth": 2,
75 "trailingComma": "none",
76 "useTabs": false
77 },
78 "remarkConfig": {
79 "plugins": [
80 "remark-preset-wooorm"
81 ]
82 },
83 "typeCoverage": {
84 "atLeast": 100,
85 "detail": true,
86 "ignoreCatch": true,
87 "#": "Couple of needed `any`s",
88 "ignoreFiles": [
89 "lib/index.d.ts"
90 ],
91 "strict": true
92 },
93 "xo": {
94 "overrides": [
95 {
96 "files": [
97 "test/**/*.js"
98 ],
99 "rules": {
100 "max-nested-callbacks": "off",
101 "no-await-in-loop": "off",
102 "no-script-url": "off"
103 }
104 }
105 ],
106 "prettier": true,
107 "rules": {
108 "complexity": "off",
109 "unicorn/prefer-at": "off"
110 }
111 }
112}