How to use the textlint.cli.execute function in textlint

To help you get started, we’ve selected a few textlint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github textlint / textlint / examples / perf / run.js View on Github external
// LICENSE : MIT
"use strict";
// run as app
var cli = require("textlint").cli;
cli
    .execute(process.argv.concat(__dirname + "/md/"))
    .then(function(exit) {
        console.log(exit);
    })
    .catch(function(error) {
        console.error(error);
    });

textlint

The pluggable linting tool for text and markdown.

MIT
Latest version published 2 months ago

Package Health Score

83 / 100
Full package analysis