textlint-rule-chunk-size

1.0.4 • Public • Published

textlint-rule-chunk-size

Install

Install with npm:

npm install textlint-rule-chunk-size

Usage

Via .textlintrc.json(Recommended)

{
    "rules": {
        "chunk-size": {
            "chunkSize": 2000,
            "delimiter": "page: "
        }
    }
}

chunkSize is the maximum number of characters in a chunk. More than this number will throw a lint error.

delimiter is the string that separates chunks.

Via CLI

textlint --rule chunk-size 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

ISC ©

/textlint-rule-chunk-size/

    Package Sidebar

    Install

    npm i textlint-rule-chunk-size

    Weekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    9.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • hoffination