# micro-utils

> A micro library of utils with a functional taste

Latest version **1.0.6-1** (published 2016-08-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install micro-utils
pnpm add micro-utils
yarn add micro-utils
bun add micro-utils
```

## 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.6-1 |
| Published | 2016-08-09 |
| First published | 2016-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Karen Serfaty |
| Maintainers | keyserfaty |

## Links

- npm: https://www.npmjs.com/package/micro-utils
- Repository: https://github.com/keyserfaty/utils
- Homepage: https://github.com/keyserfaty/utils#readme
- Issues: https://github.com/keyserfaty/utils/issues
- npm.io page: https://npm.io/package/micro-utils

## Recent versions

- 1.0.6-1 (latest) — 2016-08-09
- 1.0.6 — 2016-08-09
- 1.0.5 — 2016-08-09
- 1.0.4 — 2016-08-09
- 1.0.3 — 2016-07-29
- 1.0.2 — 2016-07-28
- 1.0.1 — 2016-07-26
- 1.0.0 — 2016-07-26

## README

Utils
=====

A micro library of utils with a functional taste


Installation
---

    npm i micro-utils


Examples
--------

```javascript
import utils from 'micro-utils';

const someFnWithErrors = (err) => (
    utils.fail(err)
);

const ifNotUndefinedOrNull = (x) => (
    // true
    utils.existy(x)
);

const ifNotUndefinedNullOrFalse = (x) => (
    // true
    utils.truthy(x)
);

const ifEmpty = (x) => (
    // true if length === 0
    utils.empty(x)
);

const ifValid = (x) => (
    // true truthy && !empty
    utils.valid(x)
);

const ifIncludes = (arr, elem) => (
    // true if elem present in the array
    utils.includes(arr, elem)
);

```

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