# es-is

> ES module friendly fork of the definitive JavaScript type testing library

Latest version **3.3.10** (published 2017-04-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.3.10 |
| Published | 2017-04-11 |
| First published | 2017-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | * |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Zach Kelling |
| Maintainers | davidtai, zeekay |
| Keywords | util, type, test |

## Links

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

## Dependencies (2)

- [es-hasown](https://npm.io/package/es-hasown.md) 0.1.1
- [es-tostring](https://npm.io/package/es-tostring.md) 0.1.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 3.3.10 (latest) — 2017-04-11
- 3.3.9 — 2017-04-11
- 3.3.7 — 2017-04-10
- 3.3.6 — 2017-04-10
- 3.3.5 — 2017-04-10
- 3.3.3 — 2017-04-10
- 3.3.2 — 2017-04-10
- 3.3.1 — 2017-04-10
- 3.3.0 — 2017-04-10
- 3.2.2 — 2017-03-20
- 3.2.1 — 2017-03-07

## README

# es-is <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>

[![Build Status][travis-svg]][travis-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][npm-url]

[![browser support][testling-png]][testling-url]

ES Module friendly fork of the definitive [JavaScript type testing library][is].

To be or not to be? This is the library!

## Installation

As a node.js module

```shell
$ npm install es-is --save
```

## Importing and usage with bundlers
Due to limitations with bundlers, rather than `import {isFunction} from 'es-is'`
it's recommended that you import from module directly: `import isFunction from
'es-is/function`. Hopefully as tree-shaking becomes more sophisticated, this
will become unnecessary.

## API

### general

 - ``is.a`` (value, type) or ``is.type`` (value, type)
 - ``is.defined`` (value)
 - ``is.empty`` (value)
 - ``is.equal`` (value, other)
 - ``is.hosted`` (value, host)
 - ``is.instance`` (value, constructor)
 - ``is.instanceof`` (value, constructor) - deprecated, because in ES3 browsers, "instanceof" is a reserved word
 - ``is.nil`` (value)
 - ``is.null`` (value) - deprecated, because in ES3 browsers, "null" is a reserved word
 - ``is.undef`` (value)
 - ``is.undefined`` (value) - deprecated, because in ES3 browsers, "undefined" is a reserved word

### arguments

 - ``is.args`` (value)
 - ``is.arguments`` (value) - deprecated, because "arguments" is a reserved word
 - ``is.args.empty`` (value)

### array

 - ``is.array`` (value)
 - ``is.array.empty`` (value)
 - ``is.arraylike`` (value)

### boolean

 - ``is.bool`` (value)
 - ``is.boolean`` (value) - deprecated, because in ES3 browsers, "boolean" is a reserved word
 - ``is.false`` (value) - deprecated, because in ES3 browsers, "false" is a reserved word
 - ``is.true`` (value) - deprecated, because in ES3 browsers, "true" is a reserved word

### date

 - ``is.date`` (value)

### element

 - ``is.element`` (value)

### error

 - ``is.error`` (value)

### function

 - ``is.fn`` (value)
 - ``is.function`` (value) - deprecated, because in ES3 browsers, "function" is a reserved word

### number

 - ``is.number`` (value)
 - ``is.infinite`` (value)
 - ``is.decimal`` (value)
 - ``is.divisibleBy`` (value, n)
 - ``is.integer`` (value)
 - ``is.int`` (value) - deprecated, because in ES3 browsers, "int" is a reserved word
 - ``is.maximum`` (value, others)
 - ``is.minimum`` (value, others)
 - ``is.nan`` (value)
 - ``is.even`` (value)
 - ``is.odd`` (value)
 - ``is.ge`` (value, other)
 - ``is.gt`` (value, other)
 - ``is.le`` (value, other)
 - ``is.lt`` (value, other)
 - ``is.within`` (value, start, finish)

### object

 - ``is.object`` (value)

### regexp

 - ``is.regexp`` (value)

### string

 - ``is.string`` (value)

### encoded binary

 - ``is.base64`` (value)
 - ``is.hex`` (value)

### ES6 Symbols
 - ``is.symbol`` (value)


## License
[MIT][license-url]

[is]: https://github.com/enricomarino/is
[npm-url]: https://npmjs.org/package/es-is
[npm-version-svg]: http://versionbadg.es/zeekay/es-is.svg
[travis-svg]: https://travis-ci.org/zeekay/es-is.svg
[travis-url]: https://travis-ci.org/zeekay/es-is
[deps-svg]: https://david-dm.org/zeekay/es-is.svg
[deps-url]: https://david-dm.org/zeekay/es-is
[dev-deps-svg]: https://david-dm.org/zeekay/es-is/dev-status.svg
[dev-deps-url]: https://david-dm.org/zeekay/es-is#info=devDependencies
[testling-png]: https://ci.testling.com/zeekay/es-is.png
[testling-url]: https://ci.testling.com/zeekay/es-is
[npm-badge-png]: https://nodei.co/npm/es-is.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/es-is.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/es-is.svg
[downloads-url]: http://npm-stat.com/charts.html?package=es-is

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