JSPM

rehype-remove-meta-http-equiv

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23811
  • Score
    100M100P100Q160442F
  • License MIT

rehype plugin to remove `http-equiv` `meta` elements for shorter output

Package Exports

  • rehype-remove-meta-http-equiv

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rehype-remove-meta-http-equiv) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rehype-remove-meta-http-equiv

Build Coverage Downloads Size Sponsors Backers Chat

Remove meta[http-equiv=content-language] and meta[http-equiv=content-type] elements for shorter output.

Note: The missing white-space in the output is due to inikulin/parse5#150.

Install

npm:

npm install rehype-remove-meta-http-equiv

Example

In
<!doctype html>
<html lang="en-GB">
  <head>
    <meta charset="utf8">
    <meta http-equiv="content-type" content="text/html; charset=chinese">
    <meta http-equiv="content-language" content="en-US">
  </head>
  <body></body>
</html>
Out
<!doctype html><html lang="en-US"><head>
    <meta charset="chinese">
    
    
  </head>
  <body>
</body></html>

Contribute

See contributing.md in rehypejs/.github for ways to get started. See support.md for ways to get help.

This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MIT © Titus Wormer