# ander

> Use the "and" list patterns from CLDR for rendering lists of items in a locale-specific format

Latest version **0.1.1** (published 2019-05-02) · BSD license · 0 weekly downloads

## Install

```sh
npm install ander
pnpm add ander
yarn add ander
bun add ander
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-05-02 |
| First published | 2019-05-02 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 77.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andreas Lind |
| Maintainers | papandreou |

## Links

- npm: https://www.npmjs.com/package/ander
- Repository: https://github.com/papandreou/ander
- Homepage: https://github.com/papandreou/ander#readme
- Issues: https://github.com/papandreou/ander/issues
- npm.io page: https://npm.io/package/ander

## Recent versions

- 0.1.1 (latest) — 2019-05-02
- 0.1.0 — 2019-05-02

## README

# ander

Render a list of items as dictated by the locale. The formats are extracted from
[the
CLDR](http://cldr.unicode.org/development/development-process/design-proposals/list-formatting).

## Installation

```
npm install ander
```

## Syntax

```js
ander(itemsArray, localeId = 'en-US')
```

Returns a string with the formatted list items.

## Examples

```js
const ander = require('ander');

// American English:
console.log(ander(['foo', 'bar', 'quux'], 'en-US'));
// foo, bar, and quux

// Arabic:
console.log(ander(['foo', 'bar', 'quux'], 'ar'));
// foo، bar، وquux

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