{"_id":"@alexandermacarthur/strip-html","_rev":"3-59504a350631de3622e9ecf6777a36d8","name":"@alexandermacarthur/strip-html","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@alexandermacarthur/strip-html","version":"1.0.0","description":"Strips HTML tags from strings. No parser, accepts mixed sources.","keywords":["code","extract","from","html","jsp","mixed","remove","separate","stri","string","strip","tags","templating","text","xhtml"],"homepage":"https://github.com/alexmacarthur/strip-html","repository":{"type":"git","url":"git+https://github.com/alexmacarthur/strip-html.git"},"license":"MIT","author":{"name":"Alex MacArthur","url":"https://macarthur.me"},"exports":{"require":"./dist/string-strip-html.umd.js","import":"./dist/string-strip-html.esm.js"},"types":"types/index.d.ts","scripts":{"build":"rollup -c","ci_test":"npm run build && npm run format && tap --no-only --reporter=silent --output-file=testStats.md && npm run clean_cov","clean_cov":"../../scripts/leaveCoverageTotalOnly.js","clean_types":"../../scripts/cleanTypes.js","dev":"rollup -c --dev","devunittest":"npm run dev && tap --only -R 'base'","esbuild":"node '../../scripts/esbuild.js'","esbuild_dev":"cross-env MODE=dev node '../../scripts/esbuild.js'","format":"npm run lect && npm run prettier && npm run lint","lect":"lect","lint":"../../node_modules/eslint/bin/eslint.js . --ext .js --ext .ts --fix --config \"../../.eslintrc.json\" --quiet","perf":"node perf/check","prettier":"../../node_modules/prettier/bin-prettier.js '*.{js,css,scss,vue,md,ts}' --write --loglevel silent","republish":"npm publish || :","tap":"tap","pretest":"npm run build","test":"npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format","test:examples":"../../scripts/test-examples.js && npm run lect && npm run prettier","tsc":"tsc","unittest":"tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf"},"tap":{"check-coverage":false,"coverage-report":["json-summary","text"],"node-arg":["--no-warnings","--experimental-loader","@istanbuljs/esm-loader-hook"],"timeout":0},"lect":{"licence":{"extras":[""]},"req":"{ stripHtml }","various":{"devDependencies":["@types/lodash.isplainobject","@types/lodash.trim","@types/lodash.without","ranges-invert","title"]}},"dependencies":{"@babel/runtime":"^7.16.0","html-entities":"^2.3.2","lodash.isplainobject":"^4.0.6","lodash.trim":"^4.5.1","lodash.without":"^4.4.0","ranges-apply":"^6.0.4","ranges-push":"^6.0.4","string-left-right":"^5.0.4"},"devDependencies":{"@babel/cli":"^7.16.0","@babel/core":"^7.16.0","@babel/node":"^7.16.0","@babel/plugin-external-helpers":"^7.16.0","@babel/plugin-proposal-class-properties":"^7.16.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.16.0","@babel/plugin-proposal-object-rest-spread":"^7.16.0","@babel/plugin-proposal-optional-chaining":"^7.16.0","@babel/plugin-transform-runtime":"^7.16.0","@babel/preset-env":"^7.16.0","@babel/preset-typescript":"^7.16.0","@babel/register":"^7.16.0","@istanbuljs/esm-loader-hook":"^0.1.2","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.6","@rollup/plugin-strip":"^2.1.0","@rollup/plugin-typescript":"^8.3.0","@types/lodash.isplainobject":"^4.0.6","@types/lodash.trim":"^4.5.6","@types/lodash.without":"^4.4.6","@types/node":"^16.11.6","@types/tap":"^15.0.5","@typescript-eslint/eslint-plugin":"^5.3.0","@typescript-eslint/parser":"^5.3.0","core-js":"^3.19.1","cross-env":"^7.0.3","eslint":"^8.1.0","lect":"^0.18.4","ranges-invert":"^5.0.4","rollup":"^2.59.0","rollup-plugin-ascii":"^0.0.3","rollup-plugin-banner":"^0.2.1","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-dts":"^4.0.0","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-terser":"^7.0.2","tap":"^15.0.10","title":"^3.4.3","tslib":"^2.3.1","typescript":"^4.4.4"},"engines":{"node":">=12"},"publishConfig":{"access":"public"},"gitHead":"e69e4297b0d578eedf8c47313a860dd55ce62941","bugs":{"url":"https://github.com/alexmacarthur/strip-html/issues"},"_id":"@alexandermacarthur/strip-html@1.0.0","_nodeVersion":"14.15.0","_npmVersion":"7.22.0","dist":{"integrity":"sha512-DvssB0dYYSO3/97OgsRevpSQNPcEqcz27AK+fCS0Bj79F5G+KzuXTQwMWVBWdJMlwaHt/DDlIlEW84LFoZZCqg==","shasum":"fe3d6d0a1c686d39be41c0287dcdbd25afe75320","tarball":"https://registry.npmjs.org/@alexandermacarthur/strip-html/-/strip-html-1.0.0.tgz","fileCount":30,"unpackedSize":532635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg2L/oht1yMLgrUkCl26acmNk3f3G2SMGP2Vlf6nj8JgIgZRGB5v2CcPh0XwdGwZ2hxahIolRBKsXE31BlQkv+qAo="}]},"_npmUser":{"name":"alexmacarthur","email":"alex@macarthur.me"},"directories":{},"maintainers":[{"name":"alexmacarthur","email":"alex@macarthur.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-html_1.0.0_1636323298486_0.7439010544697813"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alexandermacarthur/strip-html","version":"1.0.1","description":"Strips HTML tags from strings. No parser, accepts mixed sources.","keywords":["code","extract","from","html","jsp","mixed","remove","separate","stri","string","strip","tags","templating","text","xhtml"],"homepage":"https://github.com/alexmacarthur/strip-html","repository":{"type":"git","url":"git+https://github.com/alexmacarthur/strip-html.git"},"license":"MIT","author":{"name":"Alex MacArthur","url":"https://macarthur.me"},"main":"./dist/strip-html.umd.js","exports":{"require":"./dist/strip-html.umd.js","import":"./dist/strip-html.esm.js"},"types":"types/index.d.ts","scripts":{"build":"rollup -c","ci_test":"npm run build && npm run format && tap --no-only --reporter=silent --output-file=testStats.md && npm run clean_cov","clean_cov":"../../scripts/leaveCoverageTotalOnly.js","clean_types":"../../scripts/cleanTypes.js","dev":"rollup -c --dev","devunittest":"npm run dev && tap --only -R 'base'","esbuild":"node '../../scripts/esbuild.js'","esbuild_dev":"cross-env MODE=dev node '../../scripts/esbuild.js'","format":"npm run lect && npm run prettier && npm run lint","lect":"lect","lint":"../../node_modules/eslint/bin/eslint.js . --ext .js --ext .ts --fix --config \"../../.eslintrc.json\" --quiet","perf":"node perf/check","prettier":"../../node_modules/prettier/bin-prettier.js '*.{js,css,scss,vue,md,ts}' --write --loglevel silent","republish":"npm publish || :","tap":"tap","pretest":"npm run build","test":"npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format","test:examples":"../../scripts/test-examples.js && npm run lect && npm run prettier","tsc":"tsc","unittest":"tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf"},"tap":{"check-coverage":false,"coverage-report":["json-summary","text"],"node-arg":["--no-warnings","--experimental-loader","@istanbuljs/esm-loader-hook"],"timeout":0},"lect":{"licence":{"extras":[""]},"req":"{ stripHtml }","various":{"devDependencies":["@types/lodash.isplainobject","@types/lodash.trim","@types/lodash.without","ranges-invert","title"]}},"dependencies":{"@babel/runtime":"^7.16.0","html-entities":"^2.3.2","lodash.isplainobject":"^4.0.6","lodash.trim":"^4.5.1","lodash.without":"^4.4.0","ranges-apply":"^6.0.4","ranges-push":"^6.0.4","string-left-right":"^5.0.4"},"devDependencies":{"@babel/cli":"^7.16.0","@babel/core":"^7.16.0","@babel/node":"^7.16.0","@babel/plugin-external-helpers":"^7.16.0","@babel/plugin-proposal-class-properties":"^7.16.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.16.0","@babel/plugin-proposal-object-rest-spread":"^7.16.0","@babel/plugin-proposal-optional-chaining":"^7.16.0","@babel/plugin-transform-runtime":"^7.16.0","@babel/preset-env":"^7.16.0","@babel/preset-typescript":"^7.16.0","@babel/register":"^7.16.0","@istanbuljs/esm-loader-hook":"^0.1.2","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.6","@rollup/plugin-strip":"^2.1.0","@rollup/plugin-typescript":"^8.3.0","@types/lodash.isplainobject":"^4.0.6","@types/lodash.trim":"^4.5.6","@types/lodash.without":"^4.4.6","@types/node":"^16.11.6","@types/tap":"^15.0.5","@typescript-eslint/eslint-plugin":"^5.3.0","@typescript-eslint/parser":"^5.3.0","core-js":"^3.19.1","cross-env":"^7.0.3","eslint":"^8.1.0","lect":"^0.18.4","ranges-invert":"^5.0.4","rollup":"^2.59.0","rollup-plugin-ascii":"^0.0.3","rollup-plugin-banner":"^0.2.1","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-dts":"^4.0.0","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-terser":"^7.0.2","tap":"^15.0.10","title":"^3.4.3","tslib":"^2.3.1","typescript":"^4.4.4"},"engines":{"node":">=12"},"publishConfig":{"access":"public"},"gitHead":"93ab21fbd182c513af102ff0eb2bf58e2e229257","bugs":{"url":"https://github.com/alexmacarthur/strip-html/issues"},"_id":"@alexandermacarthur/strip-html@1.0.1","_nodeVersion":"14.15.0","_npmVersion":"7.22.0","dist":{"integrity":"sha512-rkAm3rE3EO++8Sp7f18r9VbngySELXMtEZTy+3MFbBMJeTZrOlbE+U9yq2cSJGJyIDaAdNgwmHSc3w529+UXmg==","shasum":"4c2fd75c312c0ea2e9edac269d31b0fed559ebc1","tarball":"https://registry.npmjs.org/@alexandermacarthur/strip-html/-/strip-html-1.0.1.tgz","fileCount":26,"unpackedSize":212206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxI5hCRA9TVsSAnZWagAA76IP/RDRJToF6OpQYFJPzXT1\nqO3/hvS3UoogvXScI6ixVg/3w2fc1MEvraeAkMwIN3ixfFmy0Gah2rM0w8XV\nFcreDVgLThZgoIjZViqxQBcsc0RGWR6415leP3v3dqroOAyqRCwe8TGcFH+F\n2D4KYI60ykYVF4054qO2VFJH1puVKQTUZXB/w2lnI//OM/wDJb+oQoaz9gaa\nIccvLnyBpIVqyJX69W1dlAfhCvckCEjx3U2yKH1T0GzSs7pWCExwJJCU3cJy\n9+yA5LAY2uzl+BtCGFGgumsIvv/FmSpJXHuX9G8kytFmZ5ppMfKKunc+RKxV\nUvVHT+9u/mtwTdM1xoXvrI/bMzxIjda0L8re29SXzsGPYf/8Cr6U7I/cAYNC\nS8vpDrtEUbbu2bQIUY54urxIjMvXRNokJk017aqEhdjVFv3O3QhCFWhNirL9\nWTcA6OIbmoOsNz7yR90RnzDfsgBjXmhWPhtDaXT2D92I5HfP/6YNq6VfZK+9\nswBh9fq12+qKpIogpmmInEtfgp9H1I+R/jN507CYiPNdj+gHp3lRh/yaBcoS\nkjwgWa9HS87GzNszo1jukC13swJLZ3FVxVcG8dTNHlaYy09H2F7Whti2oHG0\nPIEMcehemozsgw96G6j3oV5A5XpVFAX44zKApHlg2oNKcoaSmNf2z6zkr8j3\nVbTu\r\n=Mziw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAp4eigk77r+r9yep4WysuqgAIWgVjyEbIfipCAeR17mAiAPEMmqAyHNtEB6sBjeCnXrZRzGz74WxnHjs5RuKcw/5A=="}]},"_npmUser":{"name":"alexmacarthur","email":"alex@macarthur.me"},"directories":{},"maintainers":[{"name":"alexmacarthur","email":"alex@macarthur.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-html_1.0.1_1636339678558_0.6470702620028013"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-07T22:14:58.420Z","1.0.0":"2021-11-07T22:14:58.753Z","modified":"2022-04-04T12:39:04.249Z","1.0.1":"2021-11-08T02:47:58.779Z"},"maintainers":[{"name":"alexmacarthur","email":"alex@macarthur.me"}],"description":"Strips HTML tags from strings. No parser, accepts mixed sources.","homepage":"https://github.com/alexmacarthur/strip-html","keywords":["code","extract","from","html","jsp","mixed","remove","separate","stri","string","strip","tags","templating","text","xhtml"],"repository":{"type":"git","url":"git+https://github.com/alexmacarthur/strip-html.git"},"author":{"name":"Alex MacArthur","url":"https://macarthur.me"},"bugs":{"url":"https://github.com/alexmacarthur/strip-html/issues"},"license":"MIT","readme":"> :warning: This package was forked from [Codesen's version of it](https://github.com/codsen/codsen), for the purpose of making it consumable via CommonJS.\n\n# string-strip-html\n\n> Strips HTML tags from strings. No parser, accepts mixed sources.\n\n<div class=\"package-badges\">\n  <a href=\"https://www.npmjs.com/package/string-strip-html\" rel=\"nofollow noreferrer noopener\">\n    <img src=\"https://img.shields.io/badge/-npm-blue?style=flat-square\" alt=\"page on npm\">\n  </a>\n  <a href=\"https://codsen.com/os/string-strip-html\" rel=\"nofollow noreferrer noopener\">\n    <img src=\"https://img.shields.io/badge/-codsen-blue?style=flat-square\" alt=\"page on codsen.com\">\n  </a>\n  <a href=\"https://github.com/codsen/codsen/tree/main/packages/string-strip-html\" rel=\"nofollow noreferrer noopener\">\n    <img src=\"https://img.shields.io/badge/-github-blue?style=flat-square\" alt=\"page on github\">\n  </a>\n  <a href=\"https://npmcharts.com/compare/string-strip-html?interval=30\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">\n    <img src=\"https://img.shields.io/npm/dm/string-strip-html.svg?style=flat-square\" alt=\"Downloads per month\">\n  </a>\n  <a href=\"https://prettier.io\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">\n    <img src=\"https://img.shields.io/badge/code_style-prettier-brightgreen.svg?style=flat-square\" alt=\"Code style: prettier\">\n  </a>\n  <img src=\"https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square\" alt=\"MIT License\">\n  <a href=\"https://liberamanifesto.com\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">\n    <img src=\"https://img.shields.io/badge/libera-manifesto-lightgrey.svg?style=flat-square\" alt=\"libera manifesto\">\n  </a>\n</div>\n\n## Install\n\nThis package is ESM only: Node 12+ is needed to use it and it must be imported instead of required:\n\n```bash\nnpm i string-strip-html\n```\n\nIf you need a legacy version which works with `require`, use version 8.3.0\n\n## Quick Take\n\n```js\nimport { strict as assert } from \"assert\";\nimport { stripHtml } from \"string-strip-html\";\n\nassert.equal(\n  stripHtml(`Some text <b>and</b> text.`).result,\n  `Some text and text.`\n);\n\n// prevents accidental string concatenation\nassert.equal(stripHtml(`aaa<div>bbb</div>ccc`).result, `aaa bbb ccc`);\n\n// tag pairs with content, upon request\nassert.equal(\n  stripHtml(`a <pre><code>void a;</code></pre> b`, {\n    stripTogetherWithTheirContents: [\n      \"script\", // default\n      \"style\", // default\n      \"xml\", // default\n      \"pre\", // <-- custom-added\n    ],\n  }).result,\n  `a b`\n);\n\n// detects raw, legit brackets:\nassert.equal(stripHtml(`a < b and c > d`).result, `a < b and c > d`);\n```\n\n## Documentation\n\nPlease [visit codsen.com](https://codsen.com/os/string-strip-html/) for a full description of the API and examples.\n\n## Contributing\n\nTo report bugs or request features or assistance, [raise an issue](https://github.com/codsen/codsen/issues/new/choose) on GitHub.\n\n## Licence\n\nMIT License\n\nCopyright (c) 2010-2021 Roy Revelt and other contributors\n\n<img src=\"https://codsen.com/images/png-codsen-ok.png\" width=\"98\" alt=\"ok\" align=\"center\"> <img src=\"https://codsen.com/images/png-codsen-1.png\" width=\"148\" alt=\"codsen\" align=\"center\"> <img src=\"https://codsen.com/images/png-codsen-star-small.png\" width=\"32\" alt=\"star\" align=\"center\">\n","readmeFilename":"README.md"}