# js_emojis

> Very simple js library for adding emojis in your project

Latest version **1.0.0** (published 2018-05-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install js_emojis
pnpm add js_emojis
yarn add js_emojis
bun add js_emojis
```

## 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.0 |
| Published | 2018-05-07 |
| First published | 2018-05-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 50.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Robert Aslanyan |
| Maintainers | robert_aslanyan |

## Links

- npm: https://www.npmjs.com/package/js_emojis
- Repository: https://github.com/robertguitar20/Jsemojis
- Homepage: https://github.com/robertguitar20/Jsemojis#readme
- Issues: https://github.com/robertguitar20/Jsemojis/issues
- npm.io page: https://npm.io/package/js_emojis

## Recent versions

- 1.0.0 (latest) — 2018-05-07

## README

# JsEmojis &#x1F603;


### Install
`npm install --save js_emojis`

### Configuration

|Property|Type|Default|
|:---|:--|:--|
|el|String|input[type="text"]
|insertTo|[Node](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentElement)|afterend
|mainClass|String|emoji_main
|emojiContentClass|String|emojis_content
|btnClass|String|emoji_btn
|btnText|String|:)
|btn|String|span


#### Static HTML

```html

<link rel="stylesheet" href="/node_modules/js_emojis/assets/css/jsemojis.css" />
.....

<!-- EXAMPLE -->

<!-- Imortant to contain element in row class or you can contain it 
         in your class which must have property display:flex
    -->
    ....
    <div class="row">
       <input type="text">
    </div>
    ....
    <script src="/node_modules/js_emojis/Jsemoji.js"></script>
    <script>

        // Setup JsEmoji
        JsEmoji.set({
            btn:'button',
            btnText:'JS'
        });

        // Run JsEmoji
        JsEmoji.start();
        
        //** Example **//
        let input = document.querySelector('input[type="text"]'),
            ul    = document.createElement('ul');

        input.addEventListener('keyup' , (e) => {
            if(e.which == 13){
                let li = document.createElement('li');
                li.textContent = e.target.value;
                ul.appendChild(li);
                document.body.appendChild(ul);
            }
        });

    </script>
    
<!-- -->


```
### In Node.js
```js
import 'js_emojis'


```

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