string-render-tool

0.5.2 • Public • Published

string-render-tool

A tool used to render strings of text into images.

Installation

CLI tool

npm i -g string-render-tool

Library

npm i string-render-tool

Dev Dependency

npm i -D string-render-tool

Usage

CLI tool

string-render-tool --font-size 12 "Hello, world!" -o hello_world.png

Library

const { StringRenderTool } = require("string-render-tool");

const stringRenderer = new StringRenderTool({ fontSize: 12 });

stringRenderer.render({ output: "hello_world.png", string: "Hello, world!" });

Dev Dependency

{
    "name": "example",
    "version": "0.0.0",
    "scripts": {
        "start": "string-render-tool \"Hello, world!\""
    },
    "devDependencies": {
        "string-render-tool": "0.0.0"
    }
}

Readme

Keywords

Package Sidebar

Install

npm i string-render-tool

Weekly Downloads

7

Version

0.5.2

License

MPL-2.0

Unpacked Size

25.7 kB

Total Files

8

Last publish

Collaborators

  • voidvoxel