Skip to content

ashenmagic/string-render-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }
}

About

A tool used to render strings of text into bitmaps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published