retext-latin
Advanced tools
Comparing version 2.0.0 to 2.0.1
12
index.js
@@ -1,11 +0,11 @@ | ||
'use strict'; | ||
'use strict' | ||
var unherit = require('unherit'); | ||
var Latin = require('parse-latin'); | ||
var unherit = require('unherit') | ||
var Latin = require('parse-latin') | ||
module.exports = parse; | ||
parse.Parser = Latin; | ||
module.exports = parse | ||
parse.Parser = Latin | ||
function parse() { | ||
this.Parser = unherit(Latin); | ||
this.Parser = unherit(Latin) | ||
} |
{ | ||
"name": "retext-latin", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "retext parser for Latin-script natural languages", | ||
@@ -16,12 +16,9 @@ "license": "MIT", | ||
], | ||
"homepage": "https://github.com/wooorm/retext", | ||
"repository": "https://github.com/wooorm/retext/tree/master/packages/retext-latin", | ||
"bugs": "https://github.com/wooorm/retext/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
"homepage": "https://github.com/retextjs/retext", | ||
"repository": "https://github.com/retextjs/retext/tree/master/packages/retext-latin", | ||
"bugs": "https://github.com/retextjs/retext/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)" | ||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" | ||
], | ||
"engines": { | ||
"node": ">=0.11.0" | ||
}, | ||
"files": [ | ||
@@ -28,0 +25,0 @@ "index.js" |
@@ -1,6 +0,6 @@ | ||
# retext-latin [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status] [![Chat][chat-badge]][chat] | ||
# retext-latin [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] [![Chat][chat-badge]][chat] | ||
[Parser][] for [**unified**][unified]. Parses Latin-script natural | ||
language to an [**NLCST**][nlcst] syntax tree. Used in the [**retext** | ||
processor][processor]. | ||
[Parser][] for [**unified**][unified]. | ||
Parses Latin-script natural language to a syntax tree ([**nlcst**][nlcst]). | ||
Used in the [**retext** processor][processor]. | ||
@@ -18,13 +18,14 @@ ## Installation | ||
```js | ||
var unified = require('unified'); | ||
var latin = require('retext-latin'); | ||
var stringify = require('retext-stringify'); | ||
var emoji = require('retext-emoji'); | ||
var unified = require('unified') | ||
var stream = require('unified-stream') | ||
var latin = require('retext-latin') | ||
var stringify = require('retext-stringify') | ||
var emoji = require('retext-emoji') | ||
process.stdin | ||
.pipe(unified()) | ||
var processor = unified() | ||
.use(latin) | ||
.use(emoji, {convert: 'encode'}) | ||
.use(stringify) | ||
.pipe(process.stdout); | ||
process.stdin.pipe(stream(processor)).pipe(process.stdout) | ||
``` | ||
@@ -49,3 +50,3 @@ | ||
Access to the [parser][] ([`wooorm/parse-latin`][parse-latin]). | ||
Access to the [parser][] ([`parse-latin`][parse-latin]). | ||
@@ -58,28 +59,36 @@ ## License | ||
[build-badge]: https://img.shields.io/travis/wooorm/retext.svg | ||
[build-badge]: https://img.shields.io/travis/retextjs/retext/master.svg | ||
[build-status]: https://travis-ci.org/wooorm/retext | ||
[build]: https://travis-ci.org/retextjs/retext | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/retext.svg | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/retextjs/retext.svg | ||
[coverage-status]: https://codecov.io/github/wooorm/retext | ||
[coverage]: https://codecov.io/github/retextjs/retext | ||
[chat-badge]: https://img.shields.io/gitter/room/wooorm/retext.svg | ||
[downloads-badge]: https://img.shields.io/npm/dm/retext-latin.svg | ||
[chat]: https://gitter.im/wooorm/retext | ||
[downloads]: https://www.npmjs.com/package/retext-latin | ||
[license]: https://github.com/wooorm/retext/blob/master/LICENSE | ||
[size-badge]: https://img.shields.io/bundlephobia/minzip/retext-latin.svg | ||
[author]: http://wooorm.com | ||
[size]: https://bundlephobia.com/result?p=retext-latin | ||
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg | ||
[chat]: https://spectrum.chat/unified/retext | ||
[license]: https://github.com/retextjs/retext/blob/master/license | ||
[author]: https://wooorm.com | ||
[npm]: https://docs.npmjs.com/cli/install | ||
[unified]: https://github.com/wooorm/unified | ||
[unified]: https://github.com/unifiedjs/unified | ||
[processor]: https://github.com/wooorm/retext/blob/master/packages/retext | ||
[processor]: https://github.com/retextjs/retext/blob/master/packages/retext | ||
[nlcst]: https://github.com/wooorm/nlcst | ||
[nlcst]: https://github.com/syntax-tree/nlcst | ||
[parser]: https://github.com/wooorm/unified#processorparser | ||
[parser]: https://github.com/unifiedjs/unified#processorparser | ||
[parse-latin]: https://github.com/wooorm/parse-latin |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
3220
92