Comparing version
@@ -12,4 +12,2 @@ /** | ||
/* eslint-env commonjs */ | ||
/* Dependencies. */ | ||
@@ -22,4 +20,4 @@ var unified = require('unified'); | ||
module.exports = unified() | ||
.use(latin) | ||
.use(stringify) | ||
.abstract(); | ||
.use(latin) | ||
.use(stringify) | ||
.abstract(); |
{ | ||
"name": "retext", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Natural language processor powered by plugins", | ||
@@ -20,3 +20,3 @@ "license": "MIT", | ||
"retext-stringify": "^1.0.0", | ||
"unified": "^4.1.1" | ||
"unified": "^5.0.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "homepage": "https://github.com/wooorm/retext", |
@@ -31,10 +31,8 @@ # retext [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status] [![Chat][chat-badge]][chat] | ||
retext() | ||
.use(profanities) | ||
.use(emoji, {convert: 'encode'}) | ||
.process('He’s set on beating your butt for sheriff! :cop:', function (err, file) { | ||
file.filename = 'example'; | ||
file.extension = 'txt'; | ||
console.log(file.toString()); | ||
console.error(report(file)); | ||
}); | ||
.use(profanities) | ||
.use(emoji, {convert: 'encode'}) | ||
.process('He’s set on beating your butt for sheriff! :cop:', function (err, file) { | ||
console.log(String(file)); | ||
console.error(report(err || file)); | ||
}); | ||
``` | ||
@@ -46,4 +44,3 @@ | ||
He’s set on beating your butt for sheriff! 👮 | ||
example.txt | ||
26-1:30 warning Be careful with “butt”, it’s profane in some cases butt | ||
1:26-1:30 warning Be careful with “butt”, it’s profane in some cases butt retext-profanities | ||
@@ -50,0 +47,0 @@ ⚠ 1 warning |
3473
-2.91%18
-5.26%85
-3.41%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
Updated