# xurei-util

> Javascript Toolbox from xurei

Latest version **1.4.1** (published 2017-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install xurei-util
pnpm add xurei-util
yarn add xurei-util
bun add xurei-util
```

## 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.4.1 |
| Published | 2017-03-19 |
| First published | 2016-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Olivier Bourdoux |
| Maintainers | xurei |
| Keywords | isset |

## Links

- npm: https://www.npmjs.com/package/xurei-util
- Repository: https://github.com/xurei/x-util
- Homepage: https://github.com/xurei/x-util#readme
- Issues: https://github.com/xurei/x-util/issues
- npm.io page: https://npm.io/package/xurei-util

## Recent versions

- 1.4.1 (latest) — 2017-03-19
- 1.4.0 — 2017-03-19
- 1.3.2 — 2017-01-22
- 1.3.1 — 2017-01-22
- 1.3.0 — 2017-01-22
- 1.2.2 — 2017-01-11
- 1.2.1 — 2017-01-10
- 1.2.0 — 2016-12-12
- 1.0.2 — 2016-11-20
- 1.0.1 — 2016-11-20
- 1.0.0 — 2016-11-20

## README

# xurei-util
Javascript Toolbox

[![wercker status](https://app.wercker.com/status/ce7d4d3b6756d08c626eda9406970052/s/master "wercker status")](https://app.wercker.com/project/byKey/ce7d4d3b6756d08c626eda9406970052)

### isset(variable)
Check that a variable is defined and not null.

### lsDir(dir, recursive = true)
List the content of a directory synchronously and returns each files as an array.

### arrayToMap(array, keyFn(item), valueFn = `(a) => a`)
Convert an array to a map using the provided keyFn(item) and valueFn(item) functions.

### arrayMin & arrayMax(array, compareFn = `(a,b) => a-b`)
Returns the minimal/maximal item in an array, according to the provided compareFn

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