
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
humanize-list
Advanced tools
Comma delimit an array for human readability, the Oxford comma is optional.

Comma delimit an array for human readability, the Oxford comma is optional.
npm install --save humanize-list
var humanizeList = require('humanize-list')
humanizeList(['apples', 'tomatoes', 'unicorns']) // => 'apples, tomatoes and unicorns'
humanizeList(['apples', 'tomatoes', 'unicorns'], { oxfordComma: true }) // => 'apples, tomatoes, and unicorns'
humanizeList(['apples', 'tomatoes', 'unicorns'], { conjunction: 'or' }) // => 'apples, tomatoes or unicorns'
humanizeList(['apples', 'tomatoes', 'unicorns'], { skipConjunction: true }) // => 'apples, tomatoes, unicorns'
oxfordComma Boolean - Specify whether the Oxford comma should be included. Default: falseconjunction String - Specify a conjunction. Default: 'and'skipConjunction Boolean - Skip the conjunction altogether. Default: falseMIT
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Crafted with <3 by John Otander (@4lpine).
This package was initially generated with yeoman and the p generator.
The oxford-comma package provides similar functionality by converting arrays into human-readable strings with an emphasis on the Oxford comma. It offers customization options for conjunctions and serial commas, similar to humanize-list.
The listify package also converts arrays into human-readable strings. It is highly customizable, allowing for different conjunctions, separators, and formatting options. It is comparable to humanize-list in terms of flexibility and ease of use.
The array-to-sentence package focuses on converting arrays into readable sentences. It provides options for conjunctions and serial commas, making it a good alternative to humanize-list for creating natural language lists.
FAQs
Comma delimit an array for human readability, the Oxford comma is optional.
We found that humanize-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.