Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
/* Expose. */ | ||
module.exports = exports = nGram; | ||
module.exports = nGram; | ||
exports.bigram = nGram(2); | ||
exports.trigram = nGram(3); | ||
nGram.bigram = nGram(2); | ||
nGram.trigram = nGram(3); | ||
@@ -9,0 +8,0 @@ /* Factory returning a function that converts a given string |
{ | ||
"name": "n-gram", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Get n-grams from text", | ||
@@ -16,4 +16,4 @@ "license": "MIT", | ||
], | ||
"repository": "https://github.com/wooorm/n-gram", | ||
"bugs": "https://github.com/wooorm/n-gram/issues", | ||
"repository": "https://github.com/words/n-gram", | ||
"bugs": "https://github.com/words/n-gram/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
@@ -28,12 +28,12 @@ "contributors": [ | ||
"devDependencies": { | ||
"browserify": "^13.0.0", | ||
"browserify": "^14.0.0", | ||
"esmangle": "^1.0.0", | ||
"nyc": "^8.3.1", | ||
"remark-cli": "^2.0.0", | ||
"remark-preset-wooorm": "^1.0.0", | ||
"nyc": "^11.0.0", | ||
"remark-cli": "^4.0.0", | ||
"remark-preset-wooorm": "^3.0.0", | ||
"tape": "^4.0.0", | ||
"xo": "^0.17.0" | ||
"xo": "^0.18.0" | ||
}, | ||
"scripts": { | ||
"build-md": "remark . --quiet --frail", | ||
"build-md": "remark . -qfo", | ||
"build-bundle": "browserify index.js --bare -s nGram > n-gram.js", | ||
@@ -55,2 +55,3 @@ "build-mangle": "esmangle n-gram.js > n-gram.min.js", | ||
"space": true, | ||
"esnext": false, | ||
"ignores": [ | ||
@@ -61,5 +62,6 @@ "n-gram.js" | ||
"remarkConfig": { | ||
"output": true, | ||
"presets": "wooorm" | ||
"plugins": [ | ||
"preset-wooorm" | ||
] | ||
} | ||
} |
@@ -49,9 +49,9 @@ # n-gram [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov] | ||
[travis-badge]: https://img.shields.io/travis/wooorm/n-gram.svg | ||
[travis-badge]: https://img.shields.io/travis/words/n-gram.svg | ||
[travis]: https://travis-ci.org/wooorm/n-gram | ||
[travis]: https://travis-ci.org/words/n-gram | ||
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/n-gram.svg | ||
[codecov-badge]: https://img.shields.io/codecov/c/github/words/n-gram.svg | ||
[codecov]: https://codecov.io/github/wooorm/n-gram | ||
[codecov]: https://codecov.io/github/words/n-gram | ||
@@ -58,0 +58,0 @@ [npm]: https://docs.npmjs.com/cli/install |
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
4529
29