Socket
Socket
Sign inDemoInstall

maltoses

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    maltoses

A cute emoticon and emoji keyboard which can generate random emoticon and no xss


Version published
Weekly downloads
3
decreased by-86.96%
Maintainers
1
Install size
233 kB
Created
Weekly downloads
 

Readme

Source

Maltose

NPM version NPM downloads CircleCI

A cute emoticon and emoji keyboard for textarea and input.

Inspired by the lovely OwO maded by DIYgod.

More features:

Generate random emoticon or emoji or image 💃

Support markdown syntax to display the cute images.

Introduction

Demo

Preview

Screenshot

Install

$ yarn add maltoses --save

Usage

Work with the single JavaScript file and the css file.

HTML
<link rel="stylesheet" href="maltose.min.css">
<!-- ... -->
<div class="maltose"></div>
<!-- ... -->
<script src="maltose.min.js"></script>
JS
const maltose_demo = new maltose()

Work with module bundler

import maltose from 'maltoses'
import 'maltoses/dist/maltose.min.css'

const maltose_demo = new maltose()

Options

wrap



Type: string
Default: document.getElementsByClassName('maltose')[0]

The main tag which contains emoji and emoticon.

The default tag is the first element which classname contains maltose.

target



Type: string
Default: document.getElementsByTagName('textarea')[0]

The input or textarea tag which display the emoji or emoticon when you click it.

The default tag is the first textarea tag in DOM.

width



Type: string
Default: 100%

The width of the panel.

The default width is 100%.

maxHeight



Type: string
Default: 200px

The max-height of the panel.

The default max-height is 200px.

api



Type: string
Default: https://luyilin.github.io/Maltose/demo/maltose.json

Request the json file to get emoji and emoticon.

Run
 maltose 
locally


$ yarn install



$ gulp


Keywords

FAQs

Last updated on 12 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc