UNPKG

htmljs-parser

Version:

An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values

80 lines (79 loc) 2.4 kB
{ "name": "htmljs-parser", "description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values", "version": "5.7.0", "devDependencies": { "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.1", "@types/degit": "^2.8.6", "@types/mocha": "^10.0.6", "@types/node": "^20.11.16", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", "cross-env": "^7.0.3", "degit": "^2.8.4", "esbuild": "0.20.0", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.29.1", "fast-glob": "^3.3.2", "fixpack": "^4.0.0", "husky": "^9.0.10", "lint-staged": "^15.2.2", "mitata": "^0.1.8", "mocha": "^10.2.0", "mocha-snap": "^5.0.0", "nyc": "^15.1.0", "prettier": "^3.2.5", "tsx": "^4.19.2", "typescript": "^5.3.3" }, "exports": { ".": { "import": "./dist/index.mjs", "default": "./dist/index.js" } }, "files": [ "dist", "!**/__tests__", "!**/*.tsbuildinfo" ], "homepage": "https://github.com/marko-js/htmljs-parser", "keywords": [ "HTML", "JavaScript", "browser", "compiler", "expressions", "nodejs", "parser", "server", "template" ], "license": "MIT", "main": "./dist/index.js", "module": "./dist/index.mjs", "repository": { "type": "git", "url": "https://github.com/marko-js/htmljs-parser.git" }, "scripts": { "bench": "tsx bench.mts", "build": "tsc -b && tsx build.mts", "change": "changeset add", "ci:test": "nyc npm test -- --forbid-only", "format": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write && (fixpack || true)", "lint": "tsc -b && npm run lint:eslint && npm run lint:prettier -- -l && fixpack", "lint:eslint": "eslint -f visualstudio .", "lint:prettier": "prettier \"./**/*{.ts,.js,.json,.md,.yml,rc}\"", "prepare": "husky", "release": "npm run build && changeset publish", "report": "open ./coverage/lcov-report/index.html", "test": "cross-env NODE_ENV=test mocha \"./src/**/__tests__/*.test.ts\"", "test:update": "npm test -- --update", "version": "changeset version && npm i --package-lock-only" }, "types": "dist/index.d.ts" }