🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

retext

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retext - npm Package Compare versions

Comparing version

to
4.0.0

8

index.js

@@ -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