2021-11-24 19:46:47 +11:00
|
|
|
{
|
2022-09-03 17:12:22 +10:00
|
|
|
"name": "dom-serializer",
|
|
|
|
"version": "2.0.0",
|
2021-11-24 19:46:47 +11:00
|
|
|
"description": "render domhandler DOM nodes to a string",
|
2022-09-03 17:12:22 +10:00
|
|
|
"author": "Felix Boehm <me@feedic.com>",
|
|
|
|
"sideEffects": false,
|
2021-11-24 19:46:47 +11:00
|
|
|
"keywords": [
|
|
|
|
"html",
|
|
|
|
"xml",
|
|
|
|
"render"
|
|
|
|
],
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2022-09-03 17:12:22 +10:00
|
|
|
"url": "git://github.com/cheeriojs/dom-serializer.git"
|
|
|
|
},
|
|
|
|
"main": "lib/index.js",
|
|
|
|
"types": "lib/index.d.ts",
|
|
|
|
"module": "lib/esm/index.js",
|
|
|
|
"exports": {
|
|
|
|
"require": "./lib/index.js",
|
|
|
|
"import": "./lib/esm/index.js"
|
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"lib/**/*"
|
|
|
|
],
|
|
|
|
"dependencies": {
|
|
|
|
"domelementtype": "^2.3.0",
|
|
|
|
"domhandler": "^5.0.2",
|
|
|
|
"entities": "^4.2.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@types/jest": "^27.4.1",
|
|
|
|
"@types/node": "^17.0.23",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
|
|
"@typescript-eslint/parser": "^5.18.0",
|
|
|
|
"cheerio": "^1.0.0-rc.9",
|
|
|
|
"eslint": "^8.12.0",
|
|
|
|
"eslint-config-prettier": "^8.5.0",
|
|
|
|
"htmlparser2": "^7.2.0",
|
|
|
|
"jest": "^27.5.1",
|
|
|
|
"prettier": "^2.6.2",
|
|
|
|
"ts-jest": "^27.1.4",
|
|
|
|
"typescript": "^4.6.3"
|
2021-11-24 19:46:47 +11:00
|
|
|
},
|
|
|
|
"scripts": {
|
2022-09-03 17:12:22 +10:00
|
|
|
"test": "npm run test:jest && npm run lint",
|
|
|
|
"test:jest": "jest",
|
|
|
|
"lint": "npm run lint:es && npm run lint:prettier",
|
|
|
|
"lint:es": "eslint --ignore-path .gitignore .",
|
|
|
|
"lint:prettier": "npm run prettier -- --check",
|
|
|
|
"format": "npm run format:es && npm run format:prettier",
|
|
|
|
"format:es": "npm run lint:es -- --fix",
|
|
|
|
"format:prettier": "npm run prettier -- --write",
|
|
|
|
"prettier": "prettier \"**/*.{ts,md,json,yml}\" --ignore-path .gitignore",
|
|
|
|
"build": "npm run build:cjs && npm run build:esm",
|
|
|
|
"build:cjs": "tsc",
|
|
|
|
"build:esm": "tsc --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
|
|
|
|
"prepare": "npm run build"
|
2021-11-24 19:46:47 +11:00
|
|
|
},
|
2022-09-03 17:12:22 +10:00
|
|
|
"jest": {
|
|
|
|
"preset": "ts-jest",
|
|
|
|
"testEnvironment": "node",
|
|
|
|
"moduleNameMapper": {
|
|
|
|
"^(.*)\\.js$": "$1"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"funding": "https://github.com/cheeriojs/dom-serializer?sponsor=1",
|
|
|
|
"license": "MIT"
|
2021-11-24 19:46:47 +11:00
|
|
|
}
|