# is-emoji-web

> Simple module to testing emoji characters

Latest version **0.1.2** (published 2018-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-emoji-web
pnpm add is-emoji-web
yarn add is-emoji-web
bun add is-emoji-web
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-02-14 |
| First published | 2018-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Faruk Can Bilir |
| Maintainers | farkob |
| Keywords | emoji, text, string |

## Links

- npm: https://www.npmjs.com/package/is-emoji-web
- Repository: https://github.com/farkob/is-emoji
- Issues: https://github.com/farkob/is-emoji/issues
- npm.io page: https://npm.io/package/is-emoji-web

## Dependencies (1)

- [emojis-list](https://npm.io/package/emojis-list.md) ^2.1.0

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.1.2 (latest) — 2018-02-14

## README

# is-emoji [![Build Status](https://travis-ci.org/smurthas/is-emoji.svg?branch=master)](https://travis-ci.org/smurthas/is-emoji)

Simple enough:

```javascript
var isEmoji = require('is-emoji');

isEmoji('🌻'); // true
isEmoji('🌻'); // true

// for string iteration, since emoji char will be broken up over two indexes.
var str = 'abc🚲def';

for (var i = 0; i < str.length; i++) {
  var s = str[i];
  // will be true for i == 3, which will tell you
  if (isEmoji.isFirstCharCode(s.charCodeAt(0))) {
    // the character is 4 bytes, so concatenate them
    s += str[i+1];
  }

  console.log(s);
}

```

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