{ "name": "hastscript", "version": "8.0.0", "description": "hast utility to create trees", "license": "MIT", "keywords": [ "unist", "hast", "hast-util", "util", "utility", "html", "rehype", "vdom", "virtual", "dom", "hyperscript", "dsl" ], "repository": "syntax-tree/hastscript", "bugs": "https://github.com/syntax-tree/hastscript/issues", "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" }, "author": "Titus Wormer (https://wooorm.com)", "contributors": [ "Titus Wormer (https://wooorm.com)" ], "sideEffects": false, "type": "module", "main": "index.js", "types": "index.d.ts", "exports": { ".": "./index.js", "./jsx-runtime": "./lib/automatic-runtime-html.js", "./jsx-dev-runtime": "./lib/automatic-runtime-html.js", "./svg/jsx-runtime": "./lib/automatic-runtime-svg.js", "./svg/jsx-dev-runtime": "./lib/automatic-runtime-svg.js" }, "files": [ "lib/", "index.d.ts", "index.js" ], "dependencies": { "@types/hast": "^3.0.0", "comma-separated-tokens": "^2.0.0", "hast-util-parse-selector": "^4.0.0", "property-information": "^6.0.0", "space-separated-tokens": "^2.0.0" }, "devDependencies": { "@types/node": "^20.0.0", "acorn-jsx": "^5.0.0", "c8": "^8.0.0", "esast-util-from-js": "^2.0.0", "estree-util-build-jsx": "^3.0.0", "estree-util-to-js": "^2.0.0", "prettier": "^3.0.0", "remark-cli": "^11.0.0", "remark-preset-wooorm": "^9.0.0", "svg-tag-names": "^3.0.0", "tsd": "^0.28.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0", "unist-builder": "^4.0.0", "xo": "^0.55.0" }, "scripts": { "prepack": "npm run build && npm run format", "build": "tsc --build --clean && tsc --build && tsd && type-coverage", "generate": "node script/generate-jsx.js && node script/build.js", "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix", "test-api": "node --conditions development test/index.js", "test-coverage": "c8 --100 --reporter lcov npm run test-api", "test": "npm run generate && npm run build && npm run format && npm run test-coverage" }, "prettier": { "bracketSpacing": false, "semi": false, "singleQuote": true, "tabWidth": 2, "trailingComma": "none", "useTabs": false }, "remarkConfig": { "plugins": [ "remark-preset-wooorm" ] }, "typeCoverage": { "atLeast": 100, "detail": true, "ignoreCatch": true, "#": "needed `any`s :'(", "ignoreFiles": [ "test/jsx-build-jsx-automatic-development.js" ], "strict": true }, "xo": { "overrides": [ { "files": "**/*.ts", "rules": { "@typescript-eslint/consistent-indexed-object-style": "off", "@typescript-eslint/consistent-type-definitions": "off" } } ], "prettier": true, "rules": { "n/file-extension-in-import": "off" } } }