🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

textlint-rule-no-surrogate-pair

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-rule-no-surrogate-pair

Detects surrogate pairs in sentences.

1.0.1
latest
Source
npm
Version published
Weekly downloads
3K
-2.16%
Maintainers
1
Weekly downloads
 
Created
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

textlintrule

FAQs

Package last updated on 15 Mar 2017

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