Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "textlint", | ||
"description": "plugable text lint tool(support markdown).", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"homepage": "https://github.com/azu/textlint/", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -67,9 +67,11 @@ # textlint [![Build Status](https://travis-ci.org/azu/textlint.svg)](https://travis-ci.org/azu/textlint) | ||
```js | ||
var CLIEngine = require("textlint").CLIEngine; | ||
var cliEngine = new CLIEngine({ | ||
rulesdir: ["path/to/rule-dir"] | ||
var TextLintEngine = require("textlint").TextLintEngine; | ||
var engine = new TextLintEngine({ | ||
rulePaths: ["path/to/rule-dir"] | ||
}); | ||
var results = cliEngine.executeOnFiles(["README.md"]); | ||
var results = engine.executeOnFiles(["README.md"]); | ||
console.log(results[0].filePath);// => "README.md" | ||
console.log(results[0].messages);// => [{message:"lint message"}] | ||
var output = engine.formatResults(results); | ||
console.log(output); | ||
``` | ||
@@ -76,0 +78,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71115
144