# humanize-list

> Comma delimit an array for human readability, the Oxford comma is optional.

Latest version **1.0.1** (published 2015-12-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install humanize-list
pnpm add humanize-list
yarn add humanize-list
bun add humanize-list
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-12-18 |
| First published | 2015-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | John Otander |
| Maintainers | johno |
| Keywords | humanize, array, list, format, comma, delimit, oxford |

## Links

- npm: https://www.npmjs.com/package/humanize-list
- Repository: https://github.com/johnotander/humanize-list
- Homepage: https://github.com/johnotander/humanize-list#readme
- Issues: https://github.com/johnotander/humanize-list/issues
- npm.io page: https://npm.io/package/humanize-list

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-12-18
- 1.0.0 — 2015-06-23
- 0.0.1 — 2015-04-07

## README

# humanize-list [![Build Status](https://secure.travis-ci.org/johnotander/humanize-list.png?branch=master)](https://travis-ci.org/johnotander/humanize-list)

Comma delimit an array for human readability, the Oxford comma is optional.

## Installation

```bash
npm install --save humanize-list
```

## Usage

```javascript
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'
```

### Options

- `oxfordComma` Boolean - Specify whether the Oxford comma should be included. Default: `false`
- `conjunction` String - Specify a conjunction. Default: `'and'`
- `skipConjunction` Boolean - Skip the conjunction altogether. Default: `false`

## License

MIT

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Crafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).

***

> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).

---
_Source: https://npm.io/package/humanize-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
