{"_id":"n-gram","_rev":"55877","name":"n-gram","description":"Get n-grams from text","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"time":{"modified":"2021-06-03T10:17:00.000Z","created":"2014-09-18T14:21:13.155Z","2.0.1":"2021-03-25T19:04:09.124Z","2.0.0":"2021-03-25T12:03:21.337Z","1.1.2":"2020-01-27T15:18:56.888Z","1.1.1":"2019-05-17T14:24:01.939Z","1.1.0":"2018-08-28T16:51:35.588Z","1.0.1":"2017-11-06T17:33:45.542Z","1.0.0":"2016-10-16T13:40:00.322Z","0.1.2":"2015-01-24T12:40:35.302Z","0.1.1":"2014-11-04T15:59:37.740Z","0.1.0":"2014-10-17T13:00:14.853Z","0.0.1":"2014-09-18T14:21:13.155Z"},"users":{"sarwan":true},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/words/n-gram.git"},"versions":{"2.0.1":{"name":"n-gram","version":"2.0.1","description":"Get n-grams from text","license":"MIT","keywords":["natural","language","n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"git+https://github.com/words/n-gram.git"},"bugs":{"url":"https://github.com/words/n-gram/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Matt Fletcher","email":"mattflet@gmail.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"import/no-mutable-exports":"off","no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"c4def58634cca753057d353ca749d6ecc62e2352","homepage":"https://github.com/words/n-gram#readme","_id":"n-gram@2.0.1","_nodeVersion":"15.11.0","_npmVersion":"7.6.2","dist":{"shasum":"055adb9d4e12e16205b95e6213b9b865e611bc81","size":2912,"noattachment":false,"key":"/n-gram/-/n-gram-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-2.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n-gram_2.0.1_1616699048700_0.8245626380030266"},"_hasShrinkwrap":false,"publish_time":1616699049124,"_cnpm_publish_time":1616699049124},"2.0.0":{"name":"n-gram","version":"2.0.0","description":"Get n-grams from text","license":"MIT","keywords":["natural","language","n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"git+https://github.com/words/n-gram.git"},"bugs":{"url":"https://github.com/words/n-gram/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Matt Fletcher","email":"mattflet@gmail.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"import/no-mutable-exports":"off","no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"7fa5128ccd8df81ac98011fba80eeda7e2485aa5","homepage":"https://github.com/words/n-gram#readme","_id":"n-gram@2.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.2","dist":{"shasum":"fc120c7d38e45f1e4c2ca3cec7ed554cdd226734","size":2872,"noattachment":false,"key":"/n-gram/-/n-gram-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-2.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n-gram_2.0.0_1616673801100_0.07684943288357449"},"_hasShrinkwrap":false,"publish_time":1616673801337,"_cnpm_publish_time":1616673801337},"1.1.2":{"name":"n-gram","version":"1.1.2","description":"Get n-grams from text","license":"MIT","keywords":["natural","language","n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"git+https://github.com/words/n-gram.git"},"bugs":{"url":"https://github.com/words/n-gram/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Matt Fletcher","email":"mattflet@gmail.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s nGram > n-gram.js","build-mangle":"browserify . -s nGram -p tinyify > n-gram.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["n-gram.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"9ccabce4c5d1e02388870c9cc37172d4f2407395","homepage":"https://github.com/words/n-gram#readme","_id":"n-gram@1.1.2","_nodeVersion":"13.0.1","_npmVersion":"6.13.6","dist":{"shasum":"69c609a5c83bb32f82774c9e297f8494c7326798","size":2474,"noattachment":false,"key":"/n-gram/-/n-gram-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-1.1.2.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n-gram_1.1.2_1580138336774_0.9614625640468593"},"_hasShrinkwrap":false,"publish_time":1580138336888,"_cnpm_publish_time":1580138336888},"1.1.1":{"name":"n-gram","version":"1.1.1","description":"Get n-grams from text","license":"MIT","keywords":["natural","language","n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"git+https://github.com/words/n-gram.git"},"bugs":{"url":"https://github.com/words/n-gram/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Matt Fletcher","email":"mattflet@gmail.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^14.0.0","prettier":"^1.0.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^5.0.0","tape":"^4.0.0","tinyify":"^2.0.0","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s nGram > n-gram.js","build-mangle":"browserify . -s nGram -p tinyify > n-gram.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["n-gram.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"62a79a49fef84d47333d9c7c31cfbb594d321f5f","homepage":"https://github.com/words/n-gram#readme","_id":"n-gram@1.1.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"a374dc176a9063a2388d1be18ed7c35828be2a97","size":2454,"noattachment":false,"key":"/n-gram/-/n-gram-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-1.1.1.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n-gram_1.1.1_1558103041827_0.044602844551439924"},"_hasShrinkwrap":false,"publish_time":1558103041939,"_cnpm_publish_time":1558103041939},"1.1.0":{"name":"n-gram","version":"1.1.0","description":"Get n-grams from text","license":"MIT","keywords":["natural","language","n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"git+https://github.com/words/n-gram.git"},"bugs":{"url":"https://github.com/words/n-gram/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},{"name":"Matt Fletcher","email":"mattflet@gmail.com"}],"files":["index.js"],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^12.0.0","prettier":"^1.14.2","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","tinyify":"^2.4.3","xo":"^0.22.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s nGram > n-gram.js","build-mangle":"browserify . -s nGram -p tinyify > n-gram.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["n-gram.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"006bfc965e118805ed6692854e854e925f75dcfc","homepage":"https://github.com/words/n-gram#readme","_id":"n-gram@1.1.0","_npmVersion":"6.4.0","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"c07fb7d6d59aa42d10fbf680fc4c46a30766c1ee","size":2373,"noattachment":false,"key":"/n-gram/-/n-gram-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-1.1.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n-gram_1.1.0_1535475095387_0.21848940719554966"},"_hasShrinkwrap":false,"publish_time":1535475095588,"_cnpm_publish_time":1535475095588},"1.0.1":{"name":"n-gram","version":"1.0.1","description":"Get n-grams from text","license":"MIT","keywords":["natural","language","n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"git+https://github.com/words/n-gram.git"},"bugs":{"url":"https://github.com/words/n-gram/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{},"devDependencies":{"browserify":"^14.0.0","esmangle":"^1.0.0","nyc":"^11.0.0","remark-cli":"^4.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.0.0","xo":"^0.18.0"},"scripts":{"build-md":"remark . -qfo","build-bundle":"browserify index.js --bare -s nGram > n-gram.js","build-mangle":"esmangle n-gram.js > n-gram.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test.js","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"esnext":false,"ignores":["n-gram.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"efa6b62aac3f070f63de176c3fc0bb6a8ca4e47e","homepage":"https://github.com/words/n-gram#readme","_id":"n-gram@1.0.1","_shasum":"d29a465e4debcff7f9eed9fb57d9da6c806f4112","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"d29a465e4debcff7f9eed9fb57d9da6c806f4112","size":2207,"noattachment":false,"key":"/n-gram/-/n-gram-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-1.0.1.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/n-gram-1.0.1.tgz_1509989624606_0.4486586132552475"},"directories":{},"publish_time":1509989625542,"_hasShrinkwrap":false,"_cnpm_publish_time":1509989625542},"1.0.0":{"name":"n-gram","version":"1.0.0","description":"Get n-grams from text","license":"MIT","keywords":["natural","language","n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"git+https://github.com/wooorm/n-gram.git"},"bugs":{"url":"https://github.com/wooorm/n-gram/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{},"devDependencies":{"browserify":"^13.0.0","esmangle":"^1.0.0","nyc":"^8.3.1","remark-cli":"^2.0.0","remark-preset-wooorm":"^1.0.0","tape":"^4.0.0","xo":"^0.17.0"},"scripts":{"build-md":"remark . --quiet --frail","build-bundle":"browserify index.js --bare -s nGram > n-gram.js","build-mangle":"esmangle n-gram.js > n-gram.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test.js","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"ignores":["n-gram.js"]},"remarkConfig":{"output":true,"presets":"wooorm"},"gitHead":"da7e460a8a75fb2a81e5158de7ab2ebabef56036","homepage":"https://github.com/wooorm/n-gram#readme","_id":"n-gram@1.0.0","_shasum":"13ad9f014db0eec3195a2e896d77caddeb8f2d92","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"13ad9f014db0eec3195a2e896d77caddeb8f2d92","size":2224,"noattachment":false,"key":"/n-gram/-/n-gram-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-1.0.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/n-gram-1.0.0.tgz_1476625198729_0.526528533315286"},"directories":{},"publish_time":1476625200322,"_cnpm_publish_time":1476625200322,"_hasShrinkwrap":false},"0.1.2":{"name":"n-gram","version":"0.1.2","description":"Get n-grams from text","license":"MIT","keywords":["natural","language","n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"https://github.com/wooorm/n-gram.git"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"devDependencies":{"browserify":"^8.0.0","eslint":"^0.12.0","esmangle":"^1.0.0","istanbul":"^0.3.0","jscs":"^1.0.0","jscs-jsdoc":"^0.4.0","matcha":"^0.6.0","mocha":"^2.0.0","ngram":"git+https://github.com/madbence/node-ngram"},"scripts":{"test-api":"_mocha --check-leaks test.js","test-coveralls":"istanbul cover _mocha --report lcovonly -- --check-leaks test.js","test-coverage":"istanbul cover _mocha -- test.js","test-travis":"npm run test-coveralls","test":"npm run test-api","lint-api":"eslint index.js","lint-test":"eslint --env mocha test.js","lint-benchmark":"eslint --global set,suite,bench benchmark.js","lint-style":"jscs --reporter inline index.js test.js benchmark.js","lint":"npm run lint-api && npm run lint-test && npm run lint-benchmark && npm run lint-style","make":"npm run lint && npm run test-coverage","benchmark":"matcha benchmark.js","bundle":"browserify index.js -s nGram > n-gram.js","postbundle":"esmangle n-gram.js > n-gram.min.js","build":"npm run bundle","prepublish":"npm run build"},"gitHead":"36a5cbe6b113eaa29f4af8cd3efa6774de1c20fb","bugs":{"url":"https://github.com/wooorm/n-gram/issues"},"homepage":"https://github.com/wooorm/n-gram","_id":"n-gram@0.1.2","_shasum":"9acecb0f797fbfd22a0ad8a28d987880a63002ab","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.11.15","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"9acecb0f797fbfd22a0ad8a28d987880a63002ab","size":3410,"noattachment":false,"key":"/n-gram/-/n-gram-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-0.1.2.tgz"},"directories":{},"publish_time":1422103235302,"_cnpm_publish_time":1422103235302,"_hasShrinkwrap":false},"0.1.1":{"name":"n-gram","version":"0.1.1","description":"Get n-grams from text","license":"MIT","keywords":["natural","language","n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"https://github.com/wooorm/n-gram.git"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"devDependencies":{"eslint":"^0.9.0","istanbul":"^0.3.0","jscs":"^1.0.0","matcha":"^0.5.0","mocha":"^2.0.0"},"scripts":{"install-benchmark":"npm install ngram && git clone git@github.com:madbence/node-ngram.git node_modules/madbence-ngram","benchmark":"matcha benchmark.js","test":"_mocha --reporter spec --check-leaks -u exports test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports test.js","coverage":"istanbul cover node_modules/.bin/_mocha -- -- test.js","lint":"npm run lint-api && npm run lint-test && npm run lint-benchmark && npm run lint-style","lint-api":"eslint index.js","lint-test":"eslint test.js --env mocha","lint-benchmark":"eslint benchmark.js --global set,suite,bench","lint-style":"jscs index.js test.js benchmark.js --reporter=inline","make":"npm run lint && npm run coverage"},"gitHead":"b95fc3e28cd5b64d543c33285ffbed2a2a1fa544","bugs":{"url":"https://github.com/wooorm/n-gram/issues"},"homepage":"https://github.com/wooorm/n-gram","_id":"n-gram@0.1.1","_shasum":"e8a11c1c8ffcdb05553d2cbc8bbb3a635defe970","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"e8a11c1c8ffcdb05553d2cbc8bbb3a635defe970","size":2700,"noattachment":false,"key":"/n-gram/-/n-gram-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-0.1.1.tgz"},"directories":{},"publish_time":1415116777740,"_cnpm_publish_time":1415116777740,"_hasShrinkwrap":false},"0.1.0":{"name":"n-gram","version":"0.1.0","description":"Get n-grams from text","license":"MIT","keywords":["n","gram","n-gram","unigram","bigram","trigram"],"repository":{"type":"git","url":"https://github.com/wooorm/n-gram.git"},"devDependencies":{"eslint":"^0.8.0","istanbul":"^0.3.0","jscs":"^1.7.0","matcha":"^0.5.0","mocha":"^1.20.0"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"scripts":{"test":"_mocha --reporter spec --check-leaks -u exports test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports test.js","lint":"npm run lint-api && npm run lint-test && npm run lint-style","lint-api":"eslint index.js --env node --env browser --rule 'quotes: [2, single], no-cond-assign: false'","lint-test":"eslint test.js --env node --env mocha --rule 'quotes: [2, single], no-loop-func: false'","lint-style":"jscs index.js test.js benchmark.js --reporter=inline","coverage":"istanbul cover node_modules/.bin/_mocha -- -- test.js","install-benchmark":"npm install ngram && git clone git@github.com:madbence/node-ngram.git node_modules/madbence-ngram","benchmark":"matcha benchmark.js","make":"npm run lint && npm run coverage"},"gitHead":"bc44e71ceaede1e3cbaa91780966614ed4ab6f21","bugs":{"url":"https://github.com/wooorm/n-gram/issues"},"homepage":"https://github.com/wooorm/n-gram","_id":"n-gram@0.1.0","_shasum":"5c97bf0eef87b4f6225acb09955148afb1e74bbf","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"5c97bf0eef87b4f6225acb09955148afb1e74bbf","size":2708,"noattachment":false,"key":"/n-gram/-/n-gram-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-0.1.0.tgz"},"directories":{},"publish_time":1413550814853,"_cnpm_publish_time":1413550814853,"_hasShrinkwrap":false},"0.0.1":{"name":"n-gram","version":"0.0.1","description":"Get n-grams from text","license":"MIT","keywords":["n","gram","n-gram","unigram","bigram","trigram"],"devDependencies":{"eslint":"^0.8.0","istanbul":"^0.3.0","jscs":"^1.5.3","matcha":"^0.5.0","mocha":"^1.20.0"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"repository":{"type":"git","url":"https://github.com/wooorm/n-gram.git"},"scripts":{"test":"_mocha --reporter spec --check-leaks -u exports spec/n-gram.spec.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports spec/n-gram.spec.js","lint":"npm run lint-api && npm run lint-test && npm run lint-style","lint-api":"eslint index.js --env node --env browser --rule 'quotes: [2, single], no-cond-assign: false'","lint-test":"eslint spec/n-gram.spec.js --env node --env mocha --rule 'quotes: [2, single], no-loop-func: false'","lint-style":"jscs index.js spec/n-gram.spec.js benchmark/index.js --reporter=inline","coverage":"istanbul cover node_modules/.bin/_mocha -- -- spec/n-gram.spec.js","install-benchmark":"npm install ngram && git clone git@github.com:madbence/node-ngram.git node_modules/madbence-ngram","benchmark":"matcha","make":"npm run lint && npm run coverage"},"gitHead":"1d1d66315069cce0ac5085cab1f9274923e35f45","bugs":{"url":"https://github.com/wooorm/n-gram/issues"},"homepage":"https://github.com/wooorm/n-gram","_id":"n-gram@0.0.1","_shasum":"71cc3993cfed2ba43d8ab8f480490aacf99f5b80","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"71cc3993cfed2ba43d8ab8f480490aacf99f5b80","size":5067,"noattachment":false,"key":"/n-gram/-/n-gram-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/n-gram/download/n-gram-0.0.1.tgz"},"directories":{},"publish_time":1411050073155,"_cnpm_publish_time":1411050073155,"_hasShrinkwrap":false}},"readme":"# n-gram\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nGet [n-grams][wiki].\n\n## Install\n\nThis package is ESM only: Node 12+ is needed to use it and it must be `import`ed\ninstead of `require`d.\n\n[npm][]:\n\n```sh\nnpm install n-gram\n```\n\n## Use\n\n```js\nimport {bigram, trigram, nGram} from 'n-gram'\n\nbigram('n-gram') // ['n-', '-g', 'gr', 'ra', 'am']\nnGram(2)('n-gram') // ['n-', '-g', 'gr', 'ra', 'am']\n\ntrigram('n-gram') // ['n-g', '-gr', 'gra', 'ram']\n\nnGram(6)('n-gram') // ['n-gram']\nnGram(7)('n-gram') // []\n\n// Anything with a `.length` and `.slice` works: arrays too.\nbigram(['alpha', 'bravo', 'charlie']) // [['alpha', 'bravo'], ['bravo', 'charlie']]\n```\n\n## API\n\nThis package exports the following identifiers: `ngram`, `bigram`, and `trigram`.\nThere is no default export.\n\n### `nGram(n)`\n\nCreate a function that converts a given value to n-grams.\n\nWant padding?\nUse something like the following: `nGram(2)(' ' + value + ' ')`\n\n### `bigram(value)`\n\nShortcut for `nGram(2)`.\n\n### `trigram(value)`\n\nShortcut for `nGram(3)`.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/words/n-gram/workflows/main/badge.svg\n\n[build]: https://github.com/words/n-gram/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/words/n-gram.svg\n\n[coverage]: https://codecov.io/github/words/n-gram\n\n[downloads-badge]: https://img.shields.io/npm/dm/n-gram.svg\n\n[downloads]: https://www.npmjs.com/package/n-gram\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/n-gram.svg\n\n[size]: https://bundlephobia.com/result?p=n-gram\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[wiki]: https://en.wikipedia.org/wiki/N-gram\n","_attachments":{},"homepage":"https://github.com/words/n-gram#readme","bugs":{"url":"https://github.com/words/n-gram/issues"},"license":"MIT"}