unified

Project:rehypejs/rehype-minify

Package:rehype-minify-meta-content@2.0.0

  1. Dependencies:4·Dependents:1
  2. rehype plugin to minify content on meta elements
  1. unified 132
  2. hast 78
  3. rehype 74
  4. content 8
  5. meta 5

rehype-minify-meta-content

Build Coverage Downloads Size Sponsors Backers Chat

Minify content on meta elements.

Note: meta[name=theme-color] and meta[name=msapplication-TileColor] are handled by rehype-minify-meta-color.

Install

npm:

npm install rehype-minify-meta-content

Example

In
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<meta name="keywords" content="foo, bar baz, qux">
Out
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="keywords" content="foo,bar baz,qux">

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