retext-english
Advanced tools
Comparing version 2.0.0 to 3.0.0
27
index.js
@@ -1,28 +0,11 @@ | ||
/** | ||
* @author Titus Wormer | ||
* @copyright 2014 Titus Wormer | ||
* @license MIT | ||
* @module retext:english | ||
* @fileoverview retext parser for the English language. | ||
*/ | ||
'use strict'; | ||
/* eslint-env commonjs */ | ||
/* Dependencies. */ | ||
var unherit = require('unherit'); | ||
var English = require('parse-english'); | ||
/** | ||
* Attacher. | ||
* | ||
* @param {unified} processor - Unified processor. | ||
*/ | ||
function parse(processor) { | ||
processor.Parser = unherit(English); | ||
module.exports = parse; | ||
parse.Parser = English; | ||
function parse() { | ||
this.Parser = unherit(English); | ||
} | ||
/* Expose. */ | ||
parse.Parser = English; | ||
module.exports = parse; |
{ | ||
"name": "retext-english", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "retext parser for the English language", | ||
@@ -30,5 +30,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"parse-english": "^3.0.0", | ||
"parse-english": "^4.0.0", | ||
"unherit": "^1.0.4" | ||
} | ||
} |
# retext-english [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status] [![Chat][chat-badge]][chat] | ||
[Parser][] for [**unified**][unified]. Parses the English language to | ||
an [**nlcst**][nlcst] syntax tree. | ||
an [**NLCST**][nlcst] syntax tree. | ||
@@ -23,7 +23,7 @@ ## Installation | ||
process.stdin | ||
.pipe(unified()) | ||
.use(english) | ||
.use(emoji, {convert: 'encode'}) | ||
.use(stringify) | ||
.pipe(process.stdout); | ||
.pipe(unified()) | ||
.use(english) | ||
.use(emoji, {convert: 'encode'}) | ||
.use(stringify) | ||
.pipe(process.stdout); | ||
``` | ||
@@ -30,0 +30,0 @@ |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2761
8
1
+ Addedparse-english@4.2.0(transitive)
+ Addedparse-latin@4.3.0(transitive)
+ Addedunist-util-modify-children@2.0.0(transitive)
- Removedparse-english@3.0.0(transitive)
- Removedparse-latin@3.2.0(transitive)
- Removedunist-util-modify-children@1.1.6(transitive)
Updatedparse-english@^4.0.0