@mrijoo/text2image

1.0.0 • Public • Published

Text2image

Instalation :

npm i @mrijoo/text2image

Usage:

const text2image = require('@mrijoo/text2image')

Example

const fs = require("fs")
const text2image = require('@mrijoo/text2image');

text2image.convert('Hello, World!', "ObelixProBIt-cyr", { family: 'pg' }, { x: 70, y: 50, width: 400,  height: 400 }, {}).then(base64 => {
    fs.writeFile("out.png", base64.replace(/^data:image\/png;base64,/, ""), 'base64', function() {});
})

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @mrijoo/text2image

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.98 kB

    Total Files

    5

    Last publish

    Collaborators

    • mrijoo