imgle
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Imgle

imgle version imgle license

Convert any image to a twitter blocks emojis (Wordle like text)

Getting Started

yarn

$ yarn add imgle

npm

$ npm i imgle

first make sure that your image in the html image formate

import Emojize from "imgle";
const image = document.getElementbyId("image");
const [textArray, textString] = Emojize(image);

or

import Emojize from "imgle";
const image = new Image();
image.src = Buffer.from(data).toString("base64");
image.onload = () => {
  const [textArray, textString] = Emojize(image);
};

License

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i imgle

      Weekly Downloads

      3

      Version

      1.0.4

      License

      MIT

      Unpacked Size

      6.5 kB

      Total Files

      6

      Last publish

      Collaborators

      • marwanfouda