Socket
Socket
Sign inDemoInstall

syllable

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

syllable - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

benchmark/index.js

4

bower.json

@@ -13,3 +13,3 @@ {

"dependencies": {
"pluralize": "^1.0.1"
"pluralize": "^1.0.2"
},

@@ -27,2 +27,4 @@ "repository": {

"*.md",
"components",
"build",
"component.json",

@@ -29,0 +31,0 @@ "package.json",

{
"name": "syllable",
"version": "0.0.1",
"version": "0.1.0",
"description": "Get the syllable count in an English word",

@@ -13,4 +13,5 @@ "license": "MIT",

"dependencies": {
"blakeembrey/pluralize": "^1.0.1"
"blakeembrey/pluralize": "v1.0.2"
},
"repository": "wooorm/syllable",
"scripts": [

@@ -21,4 +22,3 @@ "index.js"

"data/problematic.json"
],
"repository": "wooorm/syllable"
]
}
{
"name": "syllable",
"version": "0.0.1",
"version": "0.1.0",
"description": "Get the syllable count in an English word",

@@ -13,4 +13,9 @@ "license": "MIT",

"dependencies": {
"pluralize": "^1.0.1"
"pluralize": "^1.0.2"
},
"repository": {
"type": "git",
"url": "https://github.com/wooorm/syllable.git"
},
"author": "Titus Wormer <tituswormer@gmail.com>",
"devDependencies": {

@@ -20,37 +25,18 @@ "eslint": "^0.8.0",

"jscs": "^1.5.3",
"matcha": "^0.5.0",
"mocha": "^1.20.0"
},
"author": "Titus Wormer <tituswormer@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/wooorm/syllable.git"
},
"scripts": {
"test": "node_modules/.bin/_mocha --reporter spec --check-leaks -u exports spec/syllable.spec.js",
"test-travis": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --check-leaks -u exports spec/syllable.spec.js",
"lint": "npm run lint-api && npm run lint-test && npm run lint-style",
"lint": "npm run lint-api && npm run lint-benchmark && npm run lint-test && npm run lint-style",
"lint-api": "node_modules/.bin/eslint index.js --env node --env browser --rule 'quotes: [2, single], no-cond-assign: false'",
"lint-test": "node_modules/.bin/eslint spec/syllable.spec.js --env node --env mocha --rule 'quotes: [2, single], no-loop-func: false'",
"lint-benchmark": "node_modules/.bin/eslint benchmark/index.js --env node --global suite,set,bench --rule 'quotes: [2, single]'",
"lint-style": "node_modules/.bin/jscs index.js spec/syllable.spec.js --reporter=inline",
"install-browser-test": "npm install browserify",
"build-browser-test": "node_modules/.bin/browserify spec/syllable.spec.js -o spec/browser.spec.js",
"install-benchmark": "npm install syllablistic text-statistics",
"benchmark": "node_modules/.bin/matcha",
"coverage": "node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -- spec/syllable.spec.js",
"make": "npm run lint && npm run coverage"
},
"testling": {
"files": "spec/syllable.spec.js",
"harness": "mocha",
"browsers": [
"iexplore/latest",
"chrome/latest",
"chrome/canary",
"firefox/latest",
"firefox/nightly",
"opera/latest",
"opera/next",
"safari/latest",
"iphone/latest",
"android-browser/latest"
]
}
}

@@ -34,2 +34,18 @@ # syllable [![Build Status](https://travis-ci.org/wooorm/syllable.svg?branch=master)](https://travis-ci.org/wooorm/syllable) [![Coverage Status](https://img.shields.io/coveralls/wooorm/syllable.svg)](https://coveralls.io/r/wooorm/syllable?branch=master)

## Benchmark
On a MacBook Air, it runs about 57,000 words per second.
```
syllable — this module
57 op/s » op/s * 1,000
syllablistic
37 op/s » op/s * 1,000
text-statistics
51 op/s » op/s * 1,000
```
## Inspiration

@@ -36,0 +52,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc