Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

textlint

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc