Socket
Socket
Sign inDemoInstall

rehype-minify-whitespace

Package Overview
Dependencies
8
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rehype-minify-whitespace

rehype plugin to collapse whitespace


Version published
Weekly downloads
183K
increased by13.05%
Maintainers
1
Install size
70.2 kB
Created
Weekly downloads
 

Readme

Source

rehype-minify-whitespace

Build Coverage Downloads Size Sponsors Backers Chat

Collapse white-space.

Normally, collapses to a single space. If newlines: true, collapses white-space containing newlines to '\n' instead of ' '.

Install

npm:

npm install rehype-minify-whitespace

Example

In
<h1>Heading</h1>
<p><strong>This</strong> and <em>that</em></p>
Out
<h1>Heading</h1><p><strong>This</strong> and <em>that</em></p>

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

Keywords

FAQs

Last updated on 01 Jun 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc