# min-is

> Check if a value is something

Latest version **2.2.1** (published 2018-04-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install min-is
pnpm add min-is
yarn add min-is
bun add min-is
```

## 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 | 2.2.1 |
| Published | 2018-04-19 |
| First published | 2015-02-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 41.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | chunpu |
| Maintainers | ftft1885 |
| Keywords | is, test, type |

## Links

- npm: https://www.npmjs.com/package/min-is
- Repository: https://github.com/chunpu/min-is
- Issues: https://github.com/chunpu/min-is/issues
- npm.io page: https://npm.io/package/min-is

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 2.2.1 (latest) — 2018-04-19
- 2.2.0 — 2017-01-13
- 2.1.0 — 2017-01-13
- 2.0.0 — 2017-01-13
- 1.3.0 — 2016-03-09
- 1.2.0 — 2016-01-11
- 1.1.9 — 2015-09-17
- 1.1.8 — 2015-05-18
- 1.1.7 — 2015-04-29
- 1.1.6 — 2015-03-24
- 1.1.5 — 2015-03-19
- 1.1.4 — 2015-02-11
- 1.1.3 — 2015-02-10
- 1.1.2 — 2015-02-10
- 1.0.1 — 2015-02-08
- … 1 more at https://npm.io/package/min-is/versions

## README

min-is
===

[![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-is.svg?style=flat-square
[npm-url]: https://npmjs.org/package/min-is
[downloads-image]: http://img.shields.io/npm/dm/min-is.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/min-is
[david-image]: http://img.shields.io/david/chunpu/min-is.svg?style=flat-square
[david-url]: https://david-dm.org/chunpu/min-is


Check if a value is something

Installation
---

```sh
npm i min-is
```

Api
---

##### helper

- `is.browser` detect is browser
- `is.h5` simple modern browser detect
- `is.mobile` detect mobile browser or pc browser
- `is.wechatApp` detect wechat app

##### basic function

- `is.owns`, short for `Object.prototype.hasOwnProperty.call`
- `is.bool`
- `is.number`
- `is.integer`
- `is.decimal`
- `is.undef`
- `is.hash` `is.plainObject`
- `is.object`
- `is.fn`
- `is.string`
- `is.array`
- `is.arraylike`
- `is.empty`
- `is.element`
- `is.regexp`
- `is.nan`, only `NaN` is true, other is false, unlike `isNaN`


Merge Api
---

- `is.iod` is int or decimal
- `is.oof` is object or function
- `is.nos` is number or string


Advance
---

- `is._class`, short for `Object.prototype.toString.call(value)`
- `is._type`, short for `typeof value`

License
---

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

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

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