xml-formatter
Version:
Converts a XML string into a human readable format (pretty print) while respecting the xml:space attribute
65 lines (64 loc) • 2.48 kB
JSON
{
"name": "xml-formatter",
"version": "3.6.6",
"repository": "github:chrisbottin/xml-formatter",
"bugs": {
"url": "https://github.com/chrisbottin/xml-formatter/issues"
},
"homepage": "https://github.com/chrisbottin/xml-formatter#readme",
"description": "Converts a XML string into a human readable format (pretty print) while respecting the xml:space attribute",
"author": "Chris Bottin <chrisbottin@gmail.com>",
"license": "MIT",
"main": "./dist/cjs/index.js",
"es2015": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"sideEffects": false,
"scripts": {
"lint": "eslint . --ext=js,ts",
"clean": "rm -rf ./dist",
"compile": "npm run clean && npm run lint && npm run compile:commonjs && npm run compile:esnext && npm run compile:types && npm run compile:browser",
"compile:commonjs": "tsc --module commonjs --outDir ./dist/cjs --noEmit false",
"compile:esnext": "tsc --module esnext --outDir ./dist/esm --noEmit false",
"compile:types": "tsc --emitDeclarationOnly --declaration --declarationMap --outDir ./dist/types --noEmit false",
"compile:browser": "mkdir -p ./dist/browser && npm run compile:browser:require && npm run compile:browser:singleton",
"compile:browser:require": "browserify -g [ babelify --presets [ @babel/preset-env ] ] -r ./dist/cjs/index.js:xml-formatter -o ./dist/browser/xml-formatter.js",
"compile:browser:singleton": "browserify -g [ babelify --presets [ @babel/preset-env ] ] -r ./dist/cjs/index.js:xml-formatter -o ./dist/browser/xml-formatter-singleton.js -s xmlFormatter",
"test": "mocha --require=ts-node/register --extension=ts --spec=test",
"prepublishOnly": "echo Please use publish.sh && exit 1"
},
"engines": {
"node": ">= 16"
},
"keywords": [
"xml",
"pretty",
"print",
"pretty-print",
"indent",
"parser",
"formatter",
"xml:space",
"preserve"
],
"dependencies": {
"xml-parser-xo": "^4.1.4"
},
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@types/chai": "^4.3.3",
"@types/glob": "^7.2.0",
"@types/mocha": "^7.0.2",
"@types/node": "^14.18.29",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"chai": "^4.3.4",
"eslint": "^6.8.0",
"glob": "^7.1.7",
"mocha": "^10.2.0",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
}
}