{"_id":"html5parser","_rev":"2782190","name":"html5parser","description":"A super fast & tiny HTML5 parser","dist-tags":{"latest":"2.0.2","next":"2.0.0-next"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"time":{"modified":"2022-06-08T02:55:16.000Z","created":"2017-08-18T16:59:07.375Z","2.0.2":"2021-05-11T06:47:39.977Z","2.0.1":"2021-04-16T05:56:53.205Z","2.0.0":"2020-11-11T07:08:53.883Z","2.0.0-next":"2020-11-11T06:59:46.819Z","1.2.1":"2020-10-19T11:33:36.282Z","1.2.0":"2020-09-09T17:17:34.196Z","1.1.2":"2020-02-12T12:30:41.397Z","1.1.1":"2020-02-06T04:22:00.762Z","1.1.0":"2019-07-31T03:29:17.886Z","1.0.0":"2019-07-24T06:56:47.605Z","0.3.0":"2017-08-24T04:08:04.166Z","0.2.0":"2017-08-21T09:32:05.397Z","0.1.1":"2017-08-21T02:46:48.973Z","0.1.0":"2017-08-20T14:18:08.197Z","0.0.1":"2017-08-18T16:59:07.375Z"},"users":{},"author":{"name":"acrazing","email":"joking.young@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"versions":{"2.0.2":{"name":"html5parser","description":"A super fast & tiny HTML5 parser","version":"2.0.2","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"dist/html5parser.cjs.js","module":"dist/html5parser.es.js","umd":"dist/html5parser.umd.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist temp .cache","bundle":"rollup -c rollup.config.js","build":"run-s clean bundle","prepublishOnly":"run-s test build","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-node-resolve":"^13.0.0","@types/fs-extra":"^9.0.11","@types/jest":"^26.0.23","@types/node":"^15.0.2","@types/node-fetch":"^2.5.10","fs-extra":"^10.0.0","husky":"^4.3.0","jest":"^26.6.3","lint-staged":"^11.0.0","node-fetch":"^2.6.1","npm-run-all":"^4.1.5","prettier":"^2.3.0","rollup":"^2.47.0","rollup-plugin-sourcemaps":"^0.6.3","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.5.6","typescript":"^4.2.4"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write"]},"prettier":{"printWidth":100,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^2.2.0"},"gitHead":"cc95ffc4b50d99e64a477eb34934113f2d0ca3c4","_id":"html5parser@2.0.2","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"dd504884761e024e682e1535ee9b5b997cc47293","size":54545,"noattachment":false,"key":"/html5parser/-/html5parser-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-2.0.2.tgz"},"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_2.0.2_1620715659846_0.6180569993949316"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:57.321Z","publish_time":1620715659977,"_cnpm_publish_time":1620715659977},"2.0.1":{"name":"html5parser","description":"A super fast & tiny HTML5 parser","version":"2.0.1","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"dist/html5parser.cjs.js","module":"dist/html5parser.es.js","umd":"dist/html5parser.umd.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist temp .cache","bundle":"rollup -c rollup.config.js","build":"run-s clean bundle","prepublishOnly":"run-s test build","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/fs-extra":"^9.0.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","@types/node-fetch":"^2.5.7","fs-extra":"^9.0.1","husky":"^4.3.0","jest":"^26.6.3","lint-staged":"^10.5.1","node-fetch":"^2.6.1","npm-run-all":"^4.1.5","prettier":"^2.1.2","rollup":"^2.33.1","rollup-plugin-sourcemaps":"^0.6.3","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.29.0","ts-jest":"^26.4.4","typescript":"^4.0.5"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write"]},"prettier":{"printWidth":100,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^2.0.3"},"gitHead":"c2802b096537decfd65c98a52da4e8449d40f5d6","_id":"html5parser@2.0.1","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"5a1f8a434a2a384d67881d70c20d7e02b59c0ec5","size":54526,"noattachment":false,"key":"/html5parser/-/html5parser-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-2.0.1.tgz"},"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_2.0.1_1618552613074_0.6342354886558907"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:56.215Z","publish_time":1618552613205,"_cnpm_publish_time":1618552613205},"2.0.0":{"name":"html5parser","description":"A super fast & tiny HTML5 parser","version":"2.0.0","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"dist/html5parser.cjs.js","module":"dist/html5parser.es.js","umd":"dist/html5parser.umd.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist temp .cache","bundle":"rollup -c rollup.config.js","build":"run-s clean bundle","prepublishOnly":"run-s test build","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/fs-extra":"^9.0.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","@types/node-fetch":"^2.5.7","fs-extra":"^9.0.1","husky":"^4.3.0","jest":"^26.6.3","lint-staged":"^10.5.1","node-fetch":"^2.6.1","npm-run-all":"^4.1.5","prettier":"^2.1.2","rollup":"^2.33.1","rollup-plugin-sourcemaps":"^0.6.3","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.29.0","ts-jest":"^26.4.4","typescript":"^4.0.5"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write"]},"prettier":{"printWidth":100,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^2.0.3"},"gitHead":"c2324a6016ac819f508b935d88b267e402933438","_id":"html5parser@2.0.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"94bda8dcee4bb2403500a85d9e4faff5da8c2fcf","size":54590,"noattachment":false,"key":"/html5parser/-/html5parser-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-2.0.0.tgz"},"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_2.0.0_1605078533725_0.8089081215880223"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:55.052Z","publish_time":1605078533883,"_cnpm_publish_time":1605078533883},"2.0.0-next":{"name":"html5parser","description":"A super fast & tiny HTML5 parser","version":"2.0.0-next","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"dist/html5parser.cjs.js","module":"dist/html5parser.es.js","umd":"dist/html5parser.umd.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist temp .cache","bundle":"rollup -c rollup.config.js","build":"run-s clean bundle","prepublishOnly":"run-s test build","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@rollup/plugin-commonjs":"^16.0.0","@rollup/plugin-node-resolve":"^10.0.0","@types/fs-extra":"^9.0.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","@types/node-fetch":"^2.5.7","fs-extra":"^9.0.1","husky":"^4.3.0","jest":"^26.6.3","lint-staged":"^10.5.1","node-fetch":"^2.6.1","npm-run-all":"^4.1.5","prettier":"^2.1.2","rollup":"^2.33.1","rollup-plugin-sourcemaps":"^0.6.3","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.29.0","ts-jest":"^26.4.4","typescript":"^4.0.5"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write"]},"prettier":{"printWidth":100,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^2.0.3"},"readmeFilename":"README.md","gitHead":"c2324a6016ac819f508b935d88b267e402933438","_id":"html5parser@2.0.0-next","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"b4965120a1236f5d22bdd14e707ba4f7b54e7b0a","size":54596,"noattachment":false,"key":"/html5parser/-/html5parser-2.0.0-next.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-2.0.0-next.tgz"},"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_2.0.0-next_1605077986667_0.320299751689644"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:53.929Z","publish_time":1605077986819,"_cnpm_publish_time":1605077986819},"1.2.1":{"name":"html5parser","description":"A fast, accurate AST parser for HTML5","version":"1.2.1","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","scripts":{"build":"run-s clean && run-p build:cjs build:esm && run-s build:esm:rename build:cjs:rename","build:cjs":"tsc --outDir cjs --module commonjs","build:cjs:rename":"run-p build:cjs:rename:js build:cjs:rename:map","build:cjs:rename:js":"find ./cjs -type f -name '*.js' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:cjs:rename:map":"find ./cjs -type f -name '*.js.map' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:esm":"tsc --outDir lib --module esnext --declaration","build:esm:rename":"run-p build:esm:rename:js build:esm:rename:map","build:esm:rename:js":"find ./lib -type f -name '*.js' | sed -E 's/^(.+)\\.js$/\\1/' | xargs -I % mv %.js %.mjs","build:esm:rename:map":"find ./lib -type f -name '*.js.map' | sed -E 's/^(.+)\\.js\\.map$/\\1/' | xargs -I % mv %.js.map %.mjs.map","clean":"rm -rf cjs esm lib build temp .cache","prepublishOnly":"run-s test build","start":"npm run clean && npm run build:esm -- --watch","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/fs-extra":"^9.0.1","@types/jest":"^26.0.13","@types/node":"^14.6.4","@types/node-fetch":"^2.5.7","fs-extra":"^9.0.1","husky":"^4.3.0","jest":"^26.4.2","lint-staged":"^10.3.0","node-fetch":"^2.6.1","npm-run-all":"^4.1.5","prettier":"^2.1.1","ts-jest":"^26.3.0","typescript":"^4.0.2"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write"]},"prettier":{"printWidth":80,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^2.0.1"},"gitHead":"ca71f381112836b8051ed36cc8f991661f3e37b3","_id":"html5parser@1.2.1","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"6eb27d131f325446cd2406a4753413f38ee92b7a","size":47095,"noattachment":false,"key":"/html5parser/-/html5parser-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-1.2.1.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_1.2.1_1603107216155_0.4689665498566098"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:52.815Z","publish_time":1603107216282,"_cnpm_publish_time":1603107216282},"1.2.0":{"name":"html5parser","description":"A fast, accurate AST parser for HTML5","version":"1.2.0","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","scripts":{"build":"run-s clean && run-p build:cjs build:esm && run-s build:esm:rename build:cjs:rename","build:cjs":"tsc --outDir cjs --module commonjs","build:cjs:rename":"run-p build:cjs:rename:js build:cjs:rename:map","build:cjs:rename:js":"find ./cjs -type f -name '*.js' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:cjs:rename:map":"find ./cjs -type f -name '*.js.map' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:esm":"tsc --outDir lib --module esnext --declaration","build:esm:rename":"run-p build:esm:rename:js build:esm:rename:map","build:esm:rename:js":"find ./lib -type f -name '*.js' | sed -E 's/^(.+)\\.js$/\\1/' | xargs -I % mv %.js %.mjs","build:esm:rename:map":"find ./lib -type f -name '*.js.map' | sed -E 's/^(.+)\\.js\\.map$/\\1/' | xargs -I % mv %.js.map %.mjs.map","clean":"rm -rf cjs esm lib build temp .cache","prepublishOnly":"run-s test build","start":"npm run clean && npm run build:esm -- --watch","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/fs-extra":"^9.0.1","@types/jest":"^26.0.13","@types/node":"^14.6.4","@types/node-fetch":"^2.5.7","fs-extra":"^9.0.1","husky":"^4.3.0","jest":"^26.4.2","lint-staged":"^10.3.0","node-fetch":"^2.6.1","npm-run-all":"^4.1.5","prettier":"^2.1.1","ts-jest":"^26.3.0","typescript":"^4.0.2"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write"]},"prettier":{"printWidth":80,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^2.0.1"},"gitHead":"22e5b3a50e880d8f5994d2f262da1cdd5c1fe2dc","_id":"html5parser@1.2.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"shasum":"8b480dd826e2d4e4c7349cc72c9dc00b478d3330","size":46056,"noattachment":false,"key":"/html5parser/-/html5parser-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-1.2.0.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_1.2.0_1599671854036_0.567746250990365"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:51.699Z","publish_time":1599671854196,"_cnpm_publish_time":1599671854196},"1.1.2":{"name":"html5parser","description":"A fast, accurate AST parser for HTML5","version":"1.1.2","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","scripts":{"build":"run-s clean && run-p build:cjs build:esm && run-s build:esm:rename build:cjs:rename","build:cjs":"tsc --outDir cjs --module commonjs","build:cjs:rename":"run-p build:cjs:rename:js build:cjs:rename:map","build:cjs:rename:js":"find ./cjs -type f -name '*.js' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:cjs:rename:map":"find ./cjs -type f -name '*.js.map' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:esm":"tsc --outDir lib --module esnext --declaration","build:esm:rename":"run-p build:esm:rename:js build:esm:rename:map","build:esm:rename:js":"find ./lib -type f -name '*.js' | sed -E 's/^(.+)\\.js$/\\1/' | xargs -I % mv %.js %.mjs","build:esm:rename:map":"find ./lib -type f -name '*.js.map' | sed -E 's/^(.+)\\.js\\.map$/\\1/' | xargs -I % mv %.js.map %.mjs.map","clean":"rm -rf cjs esm lib build temp .cache","prepublishOnly":"run-s test build","start":"npm run clean && npm run build:esm -- --watch","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/fs-extra":"^8.0.1","@types/jest":"^24.0.25","@types/node":"^13.1.4","@types/node-fetch":"^2.5.4","fs-extra":"^8.1.0","husky":"^3.1.0","jest":"^24.9.0","lint-staged":"^9.5.0","node-fetch":"^2.6.0","npm-run-all":"^4.1.5","prettier":"^1.19.1","ts-jest":"^24.2.0","typescript":"^3.7.4"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write","git add"]},"prettier":{"printWidth":80,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^1.10.0"},"gitHead":"fadaf7b00f404d8087c20ec9f61cebaa197ae4f1","_id":"html5parser@1.1.2","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"de1a4395b7868cfad73bef6cbdea3bcd69da25a2","size":39635,"noattachment":false,"key":"/html5parser/-/html5parser-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-1.1.2.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_1.1.2_1581510641137_0.6566372751119356"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:50.578Z","publish_time":1581510641397,"_cnpm_publish_time":1581510641397},"1.1.1":{"name":"html5parser","description":"A fast, accurate AST parser for HTML5","version":"1.1.1","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","scripts":{"build":"run-s clean && run-p build:cjs build:esm && run-s build:esm:rename build:cjs:rename","build:cjs":"tsc --outDir cjs --module commonjs","build:cjs:rename":"run-p build:cjs:rename:js build:cjs:rename:map","build:cjs:rename:js":"find ./cjs -type f -name '*.js' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:cjs:rename:map":"find ./cjs -type f -name '*.js.map' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:esm":"tsc --outDir lib --module esnext --declaration","build:esm:rename":"run-p build:esm:rename:js build:esm:rename:map","build:esm:rename:js":"find ./lib -type f -name '*.js' | sed -E 's/^(.+)\\.js$/\\1/' | xargs -I % mv %.js %.mjs","build:esm:rename:map":"find ./lib -type f -name '*.js.map' | sed -E 's/^(.+)\\.js\\.map$/\\1/' | xargs -I % mv %.js.map %.mjs.map","clean":"rm -rf cjs esm lib build temp .cache","prepublishOnly":"run-s test build","start":"npm run clean && npm run build:esm -- --watch","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/jest":"^24.0.25","@types/node":"^13.1.4","@types/node-fetch":"^2.5.4","husky":"^3.1.0","jest":"^24.9.0","lint-staged":"^9.5.0","node-fetch":"^2.6.0","npm-run-all":"^4.1.5","prettier":"^1.19.1","ts-jest":"^24.2.0","typescript":"^3.7.4"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write","git add"]},"prettier":{"printWidth":80,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^1.10.0"},"gitHead":"e3a3613afe88694d85e563862accd27c5f0e6550","_id":"html5parser@1.1.1","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"29998447bfb11b6e47ba5964e5bd10f2fa6646f7","size":39234,"noattachment":false,"key":"/html5parser/-/html5parser-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-1.1.1.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_1.1.1_1580962920545_0.39567598025648487"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:49.488Z","publish_time":1580962920762,"_cnpm_publish_time":1580962920762},"1.1.0":{"name":"html5parser","description":"A fast, accurate AST parser for HTML5","version":"1.1.0","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","scripts":{"build":"run-s clean && run-p build:cjs build:esm && run-s build:esm:rename build:cjs:rename","build:cjs":"tsc --outDir cjs --module commonjs","build:cjs:rename":"run-p build:cjs:rename:js build:cjs:rename:map","build:cjs:rename:js":"find ./cjs -type f -name '*.js' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:cjs:rename:map":"find ./cjs -type f -name '*.js.map' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:esm":"tsc --outDir lib --module esnext --declaration","build:esm:rename":"run-p build:esm:rename:js build:esm:rename:map","build:esm:rename:js":"find ./lib -type f -name '*.js' | sed -E 's/^(.+)\\.js$/\\1/' | xargs -I % mv %.js %.mjs","build:esm:rename:map":"find ./lib -type f -name '*.js.map' | sed -E 's/^(.+)\\.js\\.map$/\\1/' | xargs -I % mv %.js.map %.mjs.map","clean":"rm -rf cjs esm lib build temp .cache","prepublishOnly":"run-s test build","start":"npm run clean && npm run build:esm -- --watch","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/jest":"^24.0.15","@types/node":"^12.6.8","@types/node-fetch":"^2.5.0","husky":"^3.0.1","jest":"^24.8.0","lint-staged":"^9.2.0","node-fetch":"^2.6.0","npm-run-all":"^4.1.5","prettier":"^1.18.2","ts-jest":"^24.0.2","typescript":"^3.5.3"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write","git add"]},"prettier":{"printWidth":80,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^1.10.0"},"gitHead":"337638cb083daaaeee23232b8f63427ace6e29f6","_id":"html5parser@1.1.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"shasum":"b717c36d24b1d60e3902b15fc563ae97824c43b8","size":33809,"noattachment":false,"key":"/html5parser/-/html5parser-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-1.1.0.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_1.1.0_1564543757675_0.9091000402663842"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:48.340Z","publish_time":1564543757886,"_cnpm_publish_time":1564543757886},"1.0.0":{"name":"html5parser","description":"A fast, accurate AST parser for HTML5","version":"1.0.0","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","ast","attributes"],"license":"MIT","main":"lib/index.js","module":"lib/index.mjs","types":"lib/index.d.ts","scripts":{"build":"run-s clean && run-p build:cjs build:esm && run-s build:esm:rename build:cjs:rename","build:cjs":"tsc --outDir cjs --module commonjs","build:cjs:rename":"run-p build:cjs:rename:js build:cjs:rename:map","build:cjs:rename:js":"find ./cjs -type f -name '*.js' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:cjs:rename:map":"find ./cjs -type f -name '*.js.map' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%","build:esm":"tsc --outDir lib --module esnext --declaration","build:esm:rename":"run-p build:esm:rename:js build:esm:rename:map","build:esm:rename:js":"find ./lib -type f -name '*.js' | sed -E 's/^(.+)\\.js$/\\1/' | xargs -I % mv %.js %.mjs","build:esm:rename:map":"find ./lib -type f -name '*.js.map' | sed -E 's/^(.+)\\.js\\.map$/\\1/' | xargs -I % mv %.js.map %.mjs.map","clean":"rm -rf cjs esm lib build temp .cache","prepublishOnly":"run-s test build","start":"npm run clean && npm run build:esm -- --watch","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/jest":"^24.0.15","@types/node":"^12.6.8","@types/node-fetch":"^2.5.0","husky":"^3.0.1","jest":"^24.8.0","lint-staged":"^9.2.0","node-fetch":"^2.6.0","npm-run-all":"^4.1.5","prettier":"^1.18.2","ts-jest":"^24.0.2","typescript":"^3.5.3"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx","json","node","mjs"],"cacheDirectory":".cache/jest","collectCoverage":false,"collectCoverageFrom":["<rootDir>/src/**/*.{ts,tsx}","!**/*.d.ts"],"coverageDirectory":"temp/coverage","globals":{"__DEV__":true,"ENV":{}},"testMatch":["<rootDir>/src/**/*.spec.{ts,tsx}"],"transform":{"^.+\\.tsx?$":"ts-jest"}},"cliVersion":"8.8.4","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,jsx,ts,tsx,json,css,less,scss,md}":["prettier --write","git add"]},"prettier":{"printWidth":80,"tabWidth":2,"useTabs":false,"semi":true,"singleQuote":true,"jsxSingleQuote":false,"trailingComma":"all","bracketSpacing":true,"jsxBracketSameLine":false,"arrowParens":"always","endOfLine":"lf"},"dependencies":{"tslib":"^1.10.0"},"gitHead":"b35cba1b811f086f775715c9eb7224d5c7dc5325","_id":"html5parser@1.0.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"shasum":"38555c9a6fcc0dc5439e5fd29a4311506580b989","size":32076,"noattachment":false,"key":"/html5parser/-/html5parser-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-1.0.0.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser_1.0.0_1563951407499_0.5749185701389927"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T03:28:47.222Z","publish_time":1563951407605,"_cnpm_publish_time":1563951407605},"0.3.0":{"name":"html5parser","description":"A simple HTML5 parser, for walk and manipulate attributes and nodes.","version":"0.3.0","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","manipulate","attribute"],"license":"MIT","main":"lib/index.js","directories":{"lib":"lib","test":"test"},"scripts":{"build":"rm -rf ./lib && ./node_modules/.bin/tsc","lint":"tslint ./{src,typings}/**/*.{ts,d.ts}","prepublish":"yarn build","test":"node ./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register --recursive ./src/**/*.spec.ts","test:one":"node ./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register --recursive"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/mocha":"^2.2.41","@types/node":"^8.0.7","@types/node-fetch":"^1.6.7","mocha":"^3.5.0","ts-node":"^3.3.0","tslint":"^5.6.0","typescript":"^2.4.2"},"dependencies":{"node-fetch":"^1.7.2","parse5":"^3.0.2"},"gitHead":"2ba620205984965317aa9df4064147ac5e833609","_id":"html5parser@0.3.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"dist":{"shasum":"458296a49e535b1c44a699f6d08ce84e9a56c3e8","size":34127,"noattachment":false,"key":"/html5parser/-/html5parser-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-0.3.0.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser-0.3.0.tgz_1503547684029_0.7564309611916542"},"_cnpmcore_publish_time":"2021-12-23T03:28:46.097Z","publish_time":1503547684166,"_cnpm_publish_time":1503547684166},"0.2.0":{"name":"html5parser","description":"A simple HTML5 parser, for walk and manipulate attributes and nodes.","version":"0.2.0","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","manipulate","attribute"],"license":"MIT","main":"lib/index.js","directories":{"lib":"lib","test":"test"},"scripts":{"build":"rm -rf ./lib && ./node_modules/.bin/tsc","lint":"tslint ./{src,typings}/**/*.{ts,d.ts}","prepublish":"yarn build","test":"node ./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register --recursive ./src/**/*.spec.ts","test:one":"node ./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register --recursive"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/mocha":"^2.2.41","@types/node":"^8.0.7","mocha":"^3.5.0","ts-node":"^3.3.0","tslint":"^5.6.0","typescript":"^2.4.2"},"gitHead":"7f7dbce0b8e9d92a34601e67a097860a94ab22bb","_id":"html5parser@0.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"dist":{"shasum":"5d2cc911766e72b635de7177e59c361db03d9460","size":31109,"noattachment":false,"key":"/html5parser/-/html5parser-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-0.2.0.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser-0.2.0.tgz_1503307925238_0.5044862094800919"},"_cnpmcore_publish_time":"2021-12-23T03:28:45.004Z","publish_time":1503307925397,"_cnpm_publish_time":1503307925397},"0.1.1":{"name":"html5parser","description":"A simple HTML5 parser, for walk and manipulate attributes and nodes.","version":"0.1.1","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","manipulate","attribute"],"license":"MIT","main":"lib/index.js","directories":{"lib":"lib","test":"test"},"scripts":{"build":"rm -rf ./lib && ./node_modules/.bin/tsc","lint":"tslint ./{src,typings}/**/*.{ts,d.ts}","prepublish":"yarn build","test":"node ./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register --recursive ./src/**/*.spec.ts","test:one":"node ./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register --recursive"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/mocha":"^2.2.41","@types/node":"^8.0.7","mocha":"^3.5.0","ts-node":"^3.3.0","tslint":"^5.6.0","typescript":"^2.4.2"},"gitHead":"e20ea30a86961748edf6b984ea4777fb03131a1e","_id":"html5parser@0.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"dist":{"shasum":"12ba0bfb057709698566e5b8e0e4c11a6dbf2275","size":30123,"noattachment":false,"key":"/html5parser/-/html5parser-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-0.1.1.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser-0.1.1.tgz_1503283608816_0.49058396741747856"},"_cnpmcore_publish_time":"2021-12-23T03:28:43.897Z","publish_time":1503283608973,"_cnpm_publish_time":1503283608973},"0.1.0":{"name":"html5parser","description":"A simple HTML5 parser, for walk and manipulate attributes and nodes.","version":"0.1.0","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","manipulate","attribute"],"license":"MIT","main":"lib/index.js","directories":{"lib":"lib","test":"test"},"scripts":{"build":"rm -rf ./lib && ./node_modules/.bin/tsc","lint":"tslint ./{src,typings}/**/*.{ts,d.ts}","prepublish":"yarn build","test":"node ./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register --recursive ./src/**/*.spec.ts","test:one":"node ./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register --recursive"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/mocha":"^2.2.41","@types/node":"^8.0.7","mocha":"^3.5.0","ts-node":"^3.3.0","tslint":"^5.6.0","typescript":"^2.4.2"},"gitHead":"eafb9ed38c6cf945b3ff7899fd643b0bee8830c4","_id":"html5parser@0.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"dist":{"shasum":"1078d7d431be2fd8b46beb831af104bfb1851d85","size":29358,"noattachment":false,"key":"/html5parser/-/html5parser-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-0.1.0.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser-0.1.0.tgz_1503238688050_0.17276953882537782"},"_cnpmcore_publish_time":"2021-12-23T03:28:42.782Z","publish_time":1503238688197,"_cnpm_publish_time":1503238688197},"0.0.1":{"name":"html5parser","description":"A simple HTML5 parser, for walk and manipulate attributes and nodes.","version":"0.0.1","author":{"name":"acrazing","email":"joking.young@gmail.com"},"keywords":["html5","parser","manipulate","attribute"],"license":"MIT","main":"lib/index.js","directories":{"lib":"lib","test":"test"},"scripts":{"test":"node ./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register --recursive ./src/**/*.spec.ts"},"repository":{"type":"git","url":"git+https://github.com/acrazing/html5parser.git"},"bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"homepage":"https://github.com/acrazing/html5parser#readme","devDependencies":{"@types/mocha":"^2.2.41","mocha":"^3.5.0","ts-node":"^3.3.0","tslint":"^5.6.0","typescript":"^2.4.2"},"gitHead":"d23a5c09285e3a37798750015c1eff6d38ac7290","_id":"html5parser@0.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"acrazing","email":"joking.young@gmail.com"},"dist":{"shasum":"8f519ce4b0686c42e4ff2f4aaed1d5d2d738be8b","size":29706,"noattachment":false,"key":"/html5parser/-/html5parser-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html5parser/download/html5parser-0.0.1.tgz"},"maintainers":[{"name":"acrazing","email":"joking.young@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html5parser-0.0.1.tgz_1503075546501_0.035732920514419675"},"_cnpmcore_publish_time":"2021-12-23T03:28:41.668Z","publish_time":1503075547375,"_cnpm_publish_time":1503075547375}},"readme":"# html5parser\n\n`html5parser` is a super fast and tiny **HTML5** parser.\n\n## Highlights\n\n- **[Fast](#benchmark)**: maybe the fastest one you can find on GitHub.\n- **Tiny**: the fully packaged bundle size is less than `5kb`.\n- **Cross platform**: works in the modern browsers and Node.js.\n- **[HTML5 only](#warnings)**: any thing not in the specification will be ignored.\n- **Accurate**: every token could be located in source file.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Quick start](#quick-start)\n- [API Reference](#api-reference)\n  - Core\n  - [tokenize()](#tokenizeinput)\n  - [parse()](#parseinput)\n  - Utilities\n  - [walk()](#walkast-options)\n  - [safeHtml()](#safehtmlinput)\n    - [safeHtmlDefaultOptions](#safehtmldefaultoptions)\n- [Warnings](#warnings)\n- [Benchmark](#benchmark)\n\n## Installation\n\n1. Package manager\n\n   ```bash\n   npm i -S html5parser\n\n   # or var yarn\n   yarn add html5parser\n   ```\n\n2. CDN\n\n   ```html\n   <script src=\"https://unpkg.com/html5parser@latest/dist/html5parser.umd.js\"></script>\n   ```\n\n## Quick start\n\n[![Edit html5parser - quick start](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/keen-wind-2mpwr?fontsize=14&hidenavigation=1&theme=dark)\n\n```typescript jsx\nimport { parse, walk, SyntaxKind } from 'html5parser';\n\nconst ast = parse('<!DOCTYPE html><head><title>Hello html5parser!</title></head></html>');\n\nwalk(ast, {\n  enter: (node) => {\n    if (node.type === SyntaxKind.Tag && node.name === 'title' && Array.isArray(node.body)) {\n      const text = node.body[0];\n      if (text.type !== SyntaxKind.Text) {\n        return;\n      }\n      const div = document.createElement('div');\n      div.innerHTML = `The title of the input is <strong>${text.value}</strong>`;\n      document.body.appendChild(div);\n    }\n  },\n});\n```\n\n## API Reference\n\n### tokenize(input)\n\nLow level API to parse string to tokens:\n\n```typescript jsx\nfunction tokenize(input: string): IToken[];\n```\n\n- `IToken`\n\n  ```typescript jsx\n  interface IToken {\n    start: number;\n    end: number;\n    value: string;\n    type: TokenKind;\n  }\n  ```\n\n- `TokenKind`\n\n  ```typescript jsx\n  const enum TokenKind {\n    Literal,\n    OpenTag, // trim leading '<'\n    OpenTagEnd, // trim tailing '>', only could be '/' or ''\n    CloseTag, // trim leading '</' and tailing '>'\n    Whitespace, // the whitespace between attributes\n    AttrValueEq,\n    AttrValueNq,\n    AttrValueSq,\n    AttrValueDq,\n  }\n  ```\n\n### parse(input)\n\nCore API to parse string to AST:\n\n```typescript jsx\nfunction parse(input: string, options?: ParseOptions): INode[];\n```\n\n- `ParseOptions`\n\n  ```typescript jsx\n  interface ParseOptions {\n    // create tag's attributes map\n    // if true, will set ITag.attributeMap property\n    // as a `Record<string, IAttribute>`\n    setAttributeMap: boolean;\n  }\n  ```\n\n- `INode`\n\n  ```typescript jsx\n  export type INode = IText | ITag;\n  ```\n\n- `ITag`\n\n  ```typescript jsx\n  export interface ITag extends IBaseNode {\n    type: SyntaxKind.Tag;\n    // original open tag, <Div id=\"id\">\n    open: IText;\n    // lower case tag name, div\n    name: string;\n    // original case tag name, Div\n    rawName: string;\n    attributes: IAttribute[];\n    // the attribute map, if `options.setAttributeMap` is `true`\n    // this will be a Record, key is the attribute name literal,\n    // value is the attribute self.\n    attributeMap: Record<string, IAttribute> | undefined;\n    body:\n      | Array<ITag | IText> // with close tag\n      | undefined // self closed\n      | null; // EOF before open tag end\n    // original close tag, </DIV >\n    close:\n      | IText // with close tag\n      | undefined // self closed\n      | null; // EOF before end or without close tag\n  }\n  ```\n\n- `IAttribute`\n\n  ```typescript jsx\n  export interface IAttribute extends IBaseNode {\n    name: IText;\n    value: IAttributeValue | undefined;\n  }\n  ```\n\n- `IAttributeValue`\n\n  ```typescript jsx\n  export interface IAttributeValue extends IBaseNode {\n    value: string;\n    quote: \"'\" | '\"' | undefined;\n  }\n  ```\n\n- `IText`\n\n  ```typescript jsx\n  export interface IText extends IBaseNode {\n    type: SyntaxKind.Text;\n    value: string;\n  }\n  ```\n\n- `IBaseNode`\n\n  ```typescript jsx\n  export interface IBaseNode {\n    start: number;\n    end: number;\n  }\n  ```\n\n- `SyntaxKind`\n\n  ```typescript jsx\n  export enum SyntaxKind {\n    Text = 'Text',\n    Tag = 'Tag',\n  }\n  ```\n\n### walk(ast, options)\n\nVisit all the nodes of the AST with specified callbacks:\n\n```typescript jsx\nfunction walk(ast: INode[], options: WalkOptions): void;\n```\n\n- `IWalkOptions`\n\n  ```typescript jsx\n  export interface IWalkOptions {\n    enter?(node: INode, parent: INode | void, index: number): void;\n    leave?(node: INode, parent: INode | void, index: number): void;\n  }\n  ```\n\n### safeHtml(input)\n\nParse input to AST and keep the tags and attributes by whitelists, and then\nprint it to a string.\n\n```typescript jsx\nfunction safeHtml(input: string, options?: Partial<SafeHtmlOptions>): string;\n```\n\n<a name=\"safehtmloptions\"></a>\n\n- `SafeHtmlOptions`\n\n  ```typescript jsx\n  export interface SafeHtmlOptions {\n    allowedTags: string[];\n    allowedAttrs: string[];\n    tagAllowedAttrs: Record<string, string[]>;\n    allowedUrl: RegExp;\n  }\n  ```\n\n#### safeHtmlDefaultOptions\n\nThe default options of [`safeHtml`](#safehtmlinput), you can modify it, its\neffect is global.\n\n```typescript jsx\nconst safeHtmlDefaultOptions: SafeHtmlOptions;\n```\n\n## Warnings\n\nThis is use for HTML5, that means:\n\n1. All tags like `<? ... ?>`, `<! ... >` (except for `<!doctype ...>`, case insensitive)\n   is treated as `Comment`, that means `CDATASection` is treated as comment.\n2. Special tag names:\n\n- `\"!doctype\"` (case insensitive), the doctype declaration\n- `\"!\"`: short comment\n- `\"!--\"`: normal comment\n- `\"\"`(empty string): short comment, for `<? ... >`, the leading `?` is treated as comment content\n\n## Benchmark\n\nThanks for [htmlparser-benchmark](https://github.com/AndreasMadsen/htmlparser-benchmark),\nI created a pull request at [pulls/7](https://github.com/AndreasMadsen/htmlparser-benchmark/pull/7/files),\nand its result on my MacBook Pro is:\n\n```bash\n$ npm test\n\n> htmlparser-benchmark@1.1.3 test ~/htmlparser-benchmark\n> node execute.js\n\ngumbo-parser failed (exit code 1)\nhigh5 failed (exit code 1)\n\nhtml-parser        : 28.6524 ms/file ± 21.4282\n\nhtml5              : 130.423 ms/file ± 161.478\n\nhtml5parser        : 2.37975 ms/file ± 3.30717\n\nhtmlparser         : 16.6576 ms/file ± 109.840\n\nhtmlparser2-dom    : 3.45602 ms/file ± 5.05830\n\nhtmlparser2        : 2.61135 ms/file ± 4.33535\nhubbub failed (exit code 1)\nlibxmljs failed (exit code 1)\n\nneutron-html5parser: 2.89331 ms/file ± 2.94316\nparse5 failed (exit code 1)\n\nsax                : 10.2110 ms/file ± 13.5204\n```\n\n## License\n\n```\nThe MIT License (MIT)\n\nCopyright (c) 2020 acrazing\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","_attachments":{},"homepage":"https://github.com/acrazing/html5parser#readme","bugs":{"url":"https://github.com/acrazing/html5parser/issues"},"license":"MIT"}