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

humanize-list

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

humanize-list - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

4

index.js

@@ -13,2 +13,6 @@ 'use strict';

if (listLength === 1) {
return list[0];
}
if (options.skipConjunction) {

@@ -15,0 +19,0 @@ return list.join(', ');

2

package.json

@@ -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');

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