@nzws/libemoji.js
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@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 v2
  • 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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i @nzws/libemoji.js

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

12.3 kB

Total Files

7

Last publish

Collaborators

  • nzws_me
  • nzws-publisher