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.3 to 2.0.4

6

docs/example/node-module/lint-file.js

@@ -18,6 +18,8 @@ // LICENSE : MIT

var results = engine.executeOnFiles(filePathList);
var output = engine.formatResults(results);
console.log(output);
if (engine.isErrorResults(results)) {
var output = engine.formatResults(results);
console.log(output);
}
}
lintFile(path.join(__dirname, "..", "..", "create-rules.md"));

@@ -42,3 +42,6 @@ # Use as node modules

var output = engine.formatResults(results);
console.log(output);
if (engine.isErrorResults(results)) {
var output = engine.formatResults(results);
console.log(output);
}
}

@@ -45,0 +48,0 @@ ```

{
"name": "textlint",
"description": "plugable text lint tool(support markdown).",
"version": "2.0.3",
"version": "2.0.4",
"homepage": "https://github.com/azu/textlint/",

@@ -6,0 +6,0 @@ "keywords": [

@@ -74,4 +74,6 @@ # textlint [![Build Status](https://travis-ci.org/azu/textlint.svg)](https://travis-ci.org/azu/textlint)

console.log(results[0].messages);// => [{message:"lint message"}]
var output = engine.formatResults(results);
console.log(output);
if (engine.isErrorResults(results)) {
var output = engine.formatResults(results);
console.log(output);
}
```

@@ -78,0 +80,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