lorem-ipsum
Advanced tools
Comparing version 0.1.1 to 1.0.0
@@ -11,6 +11,5 @@ var generator = function() { | ||
, words = require('./dictionary').words | ||
, random = options.random || Math.random | ||
, inflection = require('inflection'); | ||
, random = options.random || Math.random; | ||
units = inflection.pluralize(units); | ||
units = simplePluralize(units.toLowerCase()); | ||
@@ -104,2 +103,9 @@ var randomInteger = function(min, max) { | ||
function simplePluralize(string) { | ||
if (string.indexOf('s', string.length - 1) === -1) { | ||
return string + 's'; | ||
} | ||
return string; | ||
} | ||
module.exports = generator; |
{ | ||
"name": "lorem-ipsum", | ||
"version": "0.1.1", | ||
"version": "1.0.0", | ||
"description": "Generates passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more.", | ||
@@ -9,4 +9,3 @@ "author": "Nickolas Kenyeres <nkenyeres@gmail.com> (http://knicklabs.github.com)", | ||
"dependencies": { | ||
"optimist": "~0.3.5", | ||
"inflection": "~1.2.6" | ||
"optimist": "~0.3.5" | ||
}, | ||
@@ -13,0 +12,0 @@ "devDependencies": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
12209
1
9
276
1
- Removedinflection@~1.2.6
- Removedinflection@1.2.7(transitive)