textavatar

0.9.7 • Public • Published

textavatar

Text Avatar(one or twe word) Generation Web Server. (NodeJS)

textavatar

Features

  • cli, library and web server support
  • one or twe word
  • Uppercase conversion
  • In case of error, return empty image
  • cache support
  • 20 patterns of predictable background color
  • 100% Pure Javascript

QuickStart (CLI)

$ npm install textavatar -g 
$ textavatar -h

  Usage: textavatar [options]

  Text Avatar(one or twe word) Generation


  Options:

    -V, --version     output the version number
    -t --text <text>  one or twe word. ex) fk (default: )
    -o --out <out>    Write file path (default: output.png)
    -h, --help        output usage information

QuickStart (Web Server)

$ cd {project_dir}
$ npm install

Server start :)

$ npm start # production
$ npm run debug # development(nodemon)

Access URL pattern

pattern) https://localhost:3000/{one or twe word}?size={image size}

ex

  • https://localhost:3000/kei.topaz@gmail.com # default size = 200
  • https://localhost:3000/kei.topaz@gmail.com?size=250 # output word = KE and size = 250

Readme

Keywords

none

Package Sidebar

Install

npm i textavatar

Weekly Downloads

5

Version

0.9.7

License

MIT

Last publish

Collaborators

  • fkei