Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0x6b/textlint-rule-normalize-whitespaces

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0x6b/textlint-rule-normalize-whitespaces

textlint rule which normalizes whitespaces in the document.

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44
increased by450%
Maintainers
0
Weekly downloads
 
Created
Source

textlint-rule-normalize-whitespaces

textlint rule which replaces following whitespaces to normal whitespace (U+0020) in your document.

Code PointName
U+00A0NO-BREAK SPACE
U+1680OGHAM SPACE MARK
U+2000EN QUAD
U+2001EM QUAD
U+2002EN SPACE
U+2003EM SPACE
U+2004THREE-PER-EM SPACE
U+2005FOUR-PER-EM SPACE
U+2006SIX-PER-EM SPACE
U+2007FIGURE SPACE
U+2008PUNCTUATION SPACE
U+2009THIN SPACE
U+200AHAIR SPACE
U+202FNARROW NON-BREAKING SPACE
U+205FMEDIUM MATHEMATICAL SPACE
U+3000IDEOGRAPHIC SPACE

Install

Install with npm:

npm install @0x6b/textlint-rule-normalize-whitespaces

This module requires Node.js >= 16.0.0.

Usage

Via .textlintrc(recommended):

{
  "rules": {
    "@0x6b/normalize-whitespaces": true
  }
}

Via CLI:

textlint --rule @0x6b/normalize-whitespaces README.md

Build

Builds source codes for publish to the lib/ folder. You can write ES2015+ source codes in src/ folder.

npm install && npm run build

Test

Run test code in test folder by textlint-tester.

npm test

References

License

MIT © 0x6b

Keywords

FAQs

Package last updated on 16 Jul 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc