🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

node-ngram

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-ngram - npm Package Compare versions

Comparing version

to
0.0.3

2

package.json
{
"name": "node-ngram",
"version": "0.0.2",
"version": "0.0.3",
"description": "Nodejs text n-grams",

@@ -5,0 +5,0 @@ "main": "index.js",

# node-ngram
Ngram for Nodejs
Ngram for Nodejs.
# Instalation
```sh
npm install node-ngram
```
# Example
```js

@@ -13,2 +21,3 @@ var Ngram = require('node-ngram');

console.log(ngram.ngram("Le Van Duyet"));
// => [["Le", "Van"], ["Van", "Duyet"]]
console.log(ngram.ngram("Le Van Duyet", 3));

@@ -18,2 +27,7 @@ console.log(ngram.ngram("Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit."));

# Test
```sh
npm test
```
# How to contribute

@@ -20,0 +34,0 @@ 1. Fork the project on Github