0.9.7 • Published 6 years ago
textavatar v0.9.7
textavatar
Text Avatar(one or twe word) Generation Web Server. (NodeJS)
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 = 200https://localhost:3000/kei.topaz@gmail.com?size=250
# output word =KE
and size = 250