inflection
Advanced tools
Comparing version 1.12.0 to 1.13.0
@@ -118,3 +118,2 @@ /*! | ||
'gossip', | ||
'grammar', | ||
// 'grass', | ||
@@ -371,5 +370,5 @@ 'gratitude', | ||
crises : new RegExp( '(cris|ax|test)es$' , 'gi' ), | ||
octopi : new RegExp( '(octop|vir)i$' , 'gi' ), | ||
octopuses : new RegExp( '(octop|vir)uses$' , 'gi' ), | ||
aliases : new RegExp( '(alias|canvas|status|campus)es$', 'gi' ), | ||
summonses : new RegExp( '^(summons)es$' , 'gi' ), | ||
summonses : new RegExp( '^(summons|bonus)es$' , 'gi' ), | ||
oxen : new RegExp( '^(ox)en' , 'gi' ), | ||
@@ -397,3 +396,3 @@ matrices : new RegExp( '(matr)ices$' , 'gi' ), | ||
alias : new RegExp( '(alias|status|canvas|campus)$', 'gi' ), | ||
summons : new RegExp( '^(summons)$' , 'gi' ), | ||
summons : new RegExp( '^(summons|bonus)$' , 'gi' ), | ||
bus : new RegExp( '(bu)s$' , 'gi' ), | ||
@@ -443,3 +442,3 @@ buffalo : new RegExp( '(buffal|tomat|potat)o$' , 'gi' ), | ||
[ regex.plural.crises ], | ||
[ regex.plural.octopi ], | ||
[ regex.plural.octopuses ], | ||
[ regex.plural.aliases ], | ||
@@ -463,3 +462,3 @@ [ regex.plural.summonses ], | ||
[ regex.singular.axis , '$1es' ], | ||
[ regex.singular.octopus , '$1i' ], | ||
[ regex.singular.octopus , '$1uses' ], | ||
[ regex.singular.alias , '$1es' ], | ||
@@ -545,3 +544,3 @@ [ regex.singular.summons , '$1es' ], | ||
[ regex.plural.crises , '$1is' ], | ||
[ regex.plural.octopi , '$1us' ], | ||
[ regex.plural.octopuses, '$1us' ], | ||
[ regex.plural.aliases , '$1' ], | ||
@@ -671,3 +670,3 @@ [ regex.plural.summonses, '$1' ], | ||
* inflection.pluralize( 'person' ); // === 'people' | ||
* inflection.pluralize( 'octopus' ); // === 'octopi' | ||
* inflection.pluralize( 'octopus' ); // === 'octopuses' | ||
* inflection.pluralize( 'Hat' ); // === 'Hats' | ||
@@ -694,3 +693,3 @@ * inflection.pluralize( 'person', 'guys' ); // === 'guys' | ||
* inflection.singularize( 'people' ); // === 'person' | ||
* inflection.singularize( 'octopi' ); // === 'octopus' | ||
* inflection.singularize( 'octopuses' ); // === 'octopus' | ||
* inflection.singularize( 'Hats' ); // === 'Hat' | ||
@@ -718,7 +717,7 @@ * inflection.singularize( 'guys', 'person' ); // === 'person' | ||
* inflection.inflect( 'people' 1 ); // === 'person' | ||
* inflection.inflect( 'octopi' 1 ); // === 'octopus' | ||
* inflection.inflect( 'octopuses' 1 ); // === 'octopus' | ||
* inflection.inflect( 'Hats' 1 ); // === 'Hat' | ||
* inflection.inflect( 'guys', 1 , 'person' ); // === 'person' | ||
* inflection.inflect( 'person', 2 ); // === 'people' | ||
* inflection.inflect( 'octopus', 2 ); // === 'octopi' | ||
* inflection.inflect( 'octopus', 2 ); // === 'octopuses' | ||
* inflection.inflect( 'Hat', 2 ); // === 'Hats' | ||
@@ -725,0 +724,0 @@ * inflection.inflect( 'person', 2, null, 'guys' ); // === 'guys' |
124
package.json
{ | ||
"name" : "inflection", | ||
"version" : "1.12.0", | ||
"name": "inflection", | ||
"version": "1.13.0", | ||
"description": "A port of inflection-js to node.js module", | ||
"keywords" : [ | ||
"inflection", "inflections", "inflection-js", "pluralize" , "singularize", | ||
"camelize", "underscore", "humanize", "capitalize", "dasherize", "titleize", | ||
"demodulize", "tableize", "classify", "foreign_key", "ordinalize" | ||
"keywords": [ | ||
"inflection", | ||
"inflections", | ||
"inflection-js", | ||
"pluralize", | ||
"singularize", | ||
"camelize", | ||
"underscore", | ||
"humanize", | ||
"capitalize", | ||
"dasherize", | ||
"titleize", | ||
"demodulize", | ||
"tableize", | ||
"classify", | ||
"foreign_key", | ||
"ordinalize" | ||
], | ||
"author" : "dreamerslab <ben@dreamerslab.com>", | ||
"author": "dreamerslab <ben@dreamerslab.com>", | ||
"contributors": [ | ||
{ "name": "Ryan Schuft", "email": "ryan.schuft@gmail.com" }, | ||
{ "name": "Ben Lin", "email": "ben@dreamerslab.com" }, | ||
{ "name": "Lance Pollard", "email": "lancejpollard@gmail.com" }, | ||
{ "name": "Dane O'Connor", "email": "dane.oconnor@gmail.com" }, | ||
{ "name": "David Miró", "email": "lite.3engine@gmail.com" }, | ||
{ "name": "brandondewitt" }, | ||
{ "name": "luk3thomas" }, | ||
{ "name": "Marcel Klehr" }, | ||
{ "name": "Raymond Feng" }, | ||
{ "name": "Kane Cohen", "email": "kanecohen@gmail.com" }, | ||
{ "name": "Gianni Chiappetta", "email": "gianni@runlevel6.org" }, | ||
{ "name": "Eric Brody" }, | ||
{ "name": "overlookmotel" }, | ||
{ "name": "Patrick Mowrer" }, | ||
{ "name": "Greger Olsson" }, | ||
{ "name": "Jason Crawford", "email": "jason@jasoncrawford.org" }, | ||
{ "name": "Ray Myers", "email": "ray.myers@gmail.com" }, | ||
{ "name": "Dillon Shook", "email": "dshook@alumni.nmt.edu" } | ||
{ | ||
"name": "Ryan Schuft", | ||
"email": "ryan.schuft@gmail.com" | ||
}, | ||
{ | ||
"name": "Ben Lin", | ||
"email": "ben@dreamerslab.com" | ||
}, | ||
{ | ||
"name": "Lance Pollard", | ||
"email": "lancejpollard@gmail.com" | ||
}, | ||
{ | ||
"name": "Dane O'Connor", | ||
"email": "dane.oconnor@gmail.com" | ||
}, | ||
{ | ||
"name": "David Miró", | ||
"email": "lite.3engine@gmail.com" | ||
}, | ||
{ | ||
"name": "brandondewitt" | ||
}, | ||
{ | ||
"name": "luk3thomas" | ||
}, | ||
{ | ||
"name": "Marcel Klehr" | ||
}, | ||
{ | ||
"name": "Raymond Feng" | ||
}, | ||
{ | ||
"name": "Kane Cohen", | ||
"email": "kanecohen@gmail.com" | ||
}, | ||
{ | ||
"name": "Gianni Chiappetta", | ||
"email": "gianni@runlevel6.org" | ||
}, | ||
{ | ||
"name": "Eric Brody" | ||
}, | ||
{ | ||
"name": "overlookmotel" | ||
}, | ||
{ | ||
"name": "Patrick Mowrer" | ||
}, | ||
{ | ||
"name": "Greger Olsson" | ||
}, | ||
{ | ||
"name": "Jason Crawford", | ||
"email": "jason@jasoncrawford.org" | ||
}, | ||
{ | ||
"name": "Ray Myers", | ||
"email": "ray.myers@gmail.com" | ||
}, | ||
{ | ||
"name": "Dillon Shook", | ||
"email": "dshook@alumni.nmt.edu" | ||
} | ||
], | ||
"dependencies" : {}, | ||
"devDependencies": { | ||
"mocha" : "3.2.0", | ||
"should": "11.2.0" | ||
"mocha": "^8.3.2", | ||
"should": "^13.2.3" | ||
}, | ||
"main" : "./lib/inflection.js", | ||
"main": "./lib/inflection.js", | ||
"repository": { | ||
"type": "git", | ||
"url" : "https://github.com/dreamerslab/node.inflection.git" | ||
"url": "https://github.com/dreamerslab/node.inflection.git" | ||
}, | ||
"engines" : [ "node >= 0.4.0" ], | ||
"engines": [ | ||
"node >= 0.4.0" | ||
], | ||
"license": "MIT", | ||
"scripts": { | ||
"test" : "mocha -R spec" | ||
"test": "mocha -R spec" | ||
} | ||
} |
@@ -5,2 +5,3 @@ # inflection | ||
<a href="https://www.npmjs.com/package/inflection"><img src="https://img.shields.io/npm/v/inflection" alt="NPM Version" /></a> | ||
@@ -188,5 +189,5 @@ | ||
inflection.inflect( 'people' 1 ); // === 'person' | ||
inflection.inflect( 'octopi' 1 ); // === 'octopus' | ||
inflection.inflect( 'Hats' 1 ); // === 'Hat' | ||
inflection.inflect( 'people', 1 ); // === 'person' | ||
inflection.inflect( 'octopi', 1 ); // === 'octopus' | ||
inflection.inflect( 'Hats', 1 ); // === 'Hat' | ||
inflection.inflect( 'guys', 1 , 'person' ); // === 'person' | ||
@@ -193,0 +194,0 @@ inflection.inflect( 'person', 2 ); // === 'people' |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
62295
9
506
1109
1