# min-util

> A minimalist JavaScript Util library with a largely Lodash-compatible API.

Latest version **3.6.1** (published 2018-10-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install min-util
pnpm add min-util
yarn add min-util
bun add min-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 | 3.6.1 |
| Published | 2018-10-23 |
| First published | 2015-02-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 72.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | chunpu |
| Maintainers | ftft1885 |
| Keywords | util, lib |

## Links

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

## Dependencies (1)

- [cou](https://npm.io/package/cou.md) ^1.4.0

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 3.6.1 (latest) — 2018-10-23
- 3.6.0 — 2018-10-11
- 3.5.0 — 2018-09-25
- 3.4.0 — 2018-09-19
- 3.3.1 — 2018-09-04
- 3.2.1 — 2018-08-31
- 3.2.0 — 2018-03-28
- 3.1.0 — 2018-03-09
- 3.0.0 — 2017-10-31
- 2.3.0 — 2017-01-13
- 2.2.0 — 2017-01-10
- 2.1.0 — 2016-10-11
- 2.0.0 — 2016-05-05
- 1.10.1 — 2016-01-13
- 1.10.0 — 2016-01-12
- … 49 more at https://npm.io/package/min-util/versions

## README

min-util
===

[![Build status][travis-image]][travis-url]
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][downloads-url]
[![Dependency Status][david-image]][david-url]

[npm-image]: https://img.shields.io/npm/v/min-util.svg?style=flat-square
[npm-url]: https://npmjs.org/package/min-util
[downloads-image]: http://img.shields.io/npm/dm/min-util.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/min-util
[david-image]: http://img.shields.io/david/chunpu/min-util.svg?style=flat-square
[david-url]: https://david-dm.org/chunpu/min-util


A minimalist JavaScript Util library with a largely Lodash-compatible API.

Installation
---

```sh
npm i min-util
```

## Usage

```js
var _ = require('min-util')
```

Inspired by [lodash](https://github.com/lodash/lodash) and [underscore](https://github.com/jashkenas/underscore)


### Very Small Size

min-util [(~4kb gzipped)](http://chunpu.github.io/min-util/dist/min-util.js)

Lodash is ~24kb gzipped


## Try in Browser

Try in [console](http://chunpu.github.io/min-util/docs), exports as `_`

Check [Unit Tests](http://chunpu.github.io/min-util/test/public)


## Api

### Array like

- `_.each` -> `forEach`
- `_.map`
- `_.filter`
- `_.some`
- `_.every`
- `_.reduce`
- `_.reject`
- `_.invoke`
- `_.findIndex`
- `_.find`
- `_.slice`
- `_.indexOf`
- `_.includes`
- `_.uniq`
- `_.uniqBy`
- `_.flatten`
- `_.union`
- `_.sample`
- `_.sampleSize`
- `_.shuffle`
- `_.difference`
- `_.without`
- `_.rest`
- `_.compact`
- `_.size`
- `_.first`
- `_.last`
- `_.groupBy`
- `_.partition`
- `_.range`
- `_.pullAt`
- `_.remove`
- `_.fill`
- `_.nth`


### Object

- `_.keys`
- `_.forIn`
- `_.extend`
- `_.defaults`
- `_.values`
- `_.pick`
- `_.functions`
- `_.only`
- `_.mapKeys`
- `_.mapObject`
- `_.create`
- `_.has`
- `_.get`
- `_.set`
- `_.isMatch`
- `_.toPlainObject`
- `_.size`
- `_.invert`


### Function

- `_.bind`
- `_.once`
- `_.memoize`
- `_.throttle`
- `_.debounce`
- `_.delay`
- `_.after`
- `_.before`
- `_.curry`
- `_.wrap`
- `_.negate`


### String

- `_.trim`
- `_.split`
- `_.indexOf`
- `_.slice`
- `_.toLower`
- `_.toUpper`
- `_.toString`
- `_.camelCase`
- `_.capitalize`
- `_.upperFirst`
- `_.lowerFirst`
- `_.includes`
- `_.size`
- `_.startsWith`
- `_.endsWith`
- `_.repeat`
- `_.padLeft`
- `_.padRight`
- `_.template` not support templateSettings


### Utility

- `_.noop`
- `_.now`
- `_.chain`
- `_.value`
- `_.constant`
- `_.identity`
- `_.mixin`
- `_.inherits`
- `_.random`
- `_.uniqueId`


### Lang

- `_.isString`
- `_.isArray`
- `_.isArrayLike`
- `_.isBoolean`
- `_.isElement`
- `_.isEmpty`
- `_.isFunction`
- `_.isInteger`
- `_.isNaN`
- `_.isNumber`
- `_.isObject`
- `_.isPlainObject`
- `_.isRegExp`
- `_.isUndefined`


### More Check

`_.is` equals [min-is](https://github.com/chunpu/min-is)

```js
assert(_.is.arraylike({0: 'foo', length: 1}))
```

## Platform Support

- all browsers even `IE6+`
- node.js

License
---

[![License][license-image]][license-url]

[travis-image]: https://img.shields.io/travis/chunpu/min-util.svg?style=flat-square
[travis-url]: https://travis-ci.org/chunpu/min-util
[license-image]: http://img.shields.io/npm/l/min-util.svg?style=flat-square
[license-url]: #

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