1.0.0 • Published 4 years ago

f2i.core v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

F2I Core 0.1.0 · GitHub license npm version

File to image utility

API

You can import library to create your own projects. Just import F2I

import F2I from "f2i.core";

Text -> Image

F2I.textToImage( text ).then( image => image.write( path ));
  • Param text - this is the text to encode
  • Param path - this is the path where image will be saved

Image -> Text

F2I.imagePathToText( path ).then(text => console.log(text));
  • Param path - this is the path to your png image file

This function returns the Promis<string>.