Socket
Socket
Sign inDemoInstall

textlint-rule-no-surrogate-pair

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    textlint-rule-no-surrogate-pair

Detects surrogate pairs in sentences.


Version published
Weekly downloads
300
increased by134.38%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

textlint-rule-no-surrogate-pair

Detects surrogate pairs (D800-DBFF and DC00-DFFF) in sentences.

文章の中でUnicodeのサロゲートペアの文字が使われていると検出します。サロゲートペアの文字は一部の電子書籍のリーディングシステムで表示ができないため注意が必要です。

参考:電書ラボEPUB制作仕様 2016.07.28 β0.99

Install

Install with npm:

npm install textlint-rule-no-surrogate-pair

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "no-surrogate-pair": true
    }
}

Via CLI

textlint --rule no-surrogate-pair README.md

Build

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

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

MIT ©

Keywords

FAQs

Last updated on 15 Mar 2017

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc