Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

syllable

Package Overview
Dependencies
Maintainers
2
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 4.0.1 to 4.1.0

5

cli.js

@@ -24,6 +24,3 @@ #!/usr/bin/env node

function getSyllables(value) {
value = value
.split(/\s+/g)
.map(trim)
.filter(Boolean)
value = value.split(/\s+/g).map(trim).filter(Boolean)

@@ -30,0 +27,0 @@ if (value.length === 0) {

@@ -78,3 +78,3 @@ 'use strict'

'mm',
'n[cgn]',
'n[cgns]',
'r[cnsv]',

@@ -110,2 +110,3 @@ 'squ',

'orbed', // Cancel `'.[^aeiuoycgltdb]{2,}ed$',`
'shred', // Cancel `'.[^aeiuoycgltdb]{2,}ed$',`
'eings?',

@@ -124,3 +125,4 @@ '[aeiouy]sh?e[rs]'

'^(?:ia|mc|coa[dglx].)',
'^re(app|es|im|us)'
'^re(app|es|im|us)',
'(th|d)eist'
].join('|'),

@@ -186,3 +188,3 @@ 'g'

'shires?',
'tion(?:ed|s)?'
'[gnst]ion(?:ed|s)?'
].join('|') +

@@ -225,3 +227,3 @@ ')$'

')',
'(?:fully|berry|woman|women|edly)$'
'(?:fully|berry|woman|women|edly|union|((?:[bcdfghjklmnpqrstvwxz])|[aeiou])ye?ing)$'
].join('|'),

@@ -228,0 +230,0 @@ 'g'

10

package.json
{
"name": "syllable",
"version": "4.0.1",
"version": "4.1.0",
"description": "Count syllables in English words",

@@ -38,8 +38,8 @@ "license": "MIT",

"nyc": "^15.0.0",
"prettier": "^1.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"prettier": "^2.0.0",
"remark-cli": "^8.0.0",
"remark-preset-wooorm": "^7.0.0",
"tape": "^4.0.0",
"tinyify": "^2.0.0",
"xo": "^0.25.0"
"xo": "^0.29.0"
},

@@ -46,0 +46,0 @@ "scripts": {

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

"anemone": 4,
"anyone": 3,
"apache": 3,

@@ -41,2 +42,3 @@ "aphrodite": 4,

"maybe": 2,
"naive": 2,
"newlywed": 3,

@@ -43,0 +45,0 @@ "penelope": 4,

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