Coder Social home page Coder Social logo

hideki0403 / libemoji.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nzws/libemoji.js

0.0 0.0 0.0 41.64 MB

Unofficial nodejs wrapper for emoji-gen/libemoji

Home Page: https://npmjs.com/@nzws/libemoji.js

License: MIT License

Shell 7.23% JavaScript 0.49% C++ 16.15% Python 6.52% TypeScript 69.61%

libemoji.js's Introduction

@nzws/libemoji.js

GitHub Workflow Status npm (scoped) License

Unofficial nodejs wrapper for emoji-gen/libemoji

Original Library

libemoji.js is an unofficial library, do not send any questions/issues about this to the original author.

Usage

yarn add @nzws/libemoji.js # or `npm i @nzws/libemoji.js`
import { generate } from '@nzws/libemoji.js';
import { promises } from 'fs';

void (async () => {
  const emoji = generate('えも\nじ', {
    width: 128,
    height: 128,
    color: '#1fddffff',
    backgroundColor: '#00000000',
    textAlign: 'center',
    textSizeFixed: false,
    disableStretch: false,
    typefaceFile: '/path/to/JapaneseFontFile.otf',
    typefaceName: '',
    format: 'png',
    quality: 100
  });

  await promises.writeFile('./example/emoji.png', emoji.buffer);
})();

Development

Requirements

  • Node.js v16
  • yarn v1
  • CMake
  • Python 2.7 (recommend to use asdf)
  • C11 Compiler
  • C++14 Compiler

Initialize

# Initialize
asdf install python 2.7.18
sudo apt install clang-format # for linux

SKIP_BUILD=true yarn
yarn setup

libemoji.js's People

Contributors

hideki0403 avatar nzws avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.