humanize-list
Advanced tools
Comparing version 0.0.1 to 1.0.0
@@ -13,2 +13,6 @@ 'use strict'; | ||
if (listLength === 1) { | ||
return list[0]; | ||
} | ||
if (options.skipConjunction) { | ||
@@ -15,0 +19,0 @@ return list.join(', '); |
@@ -5,3 +5,3 @@ { | ||
"author": "John Otander", | ||
"version": "0.0.1", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "directories": { |
@@ -12,2 +12,6 @@ 'use strict'; | ||
it('should correctly handle a single element list', function() { | ||
assert.equal(humanizeList(['foo']), 'foo'); | ||
}); | ||
it('should add the oxford comma when set to true', function() { | ||
@@ -14,0 +18,0 @@ assert.equal(humanizeList(['apples', 'tomatoes', 'unicorns'], { oxfordComma: true }), 'apples, tomatoes, and unicorns'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5701
48
0