A poster maker by html template.
cd html-poster
npm install
node bin/index.js -t default -p '{"author":"anonymous","content":"Principles of architecture: trade-offs over absolutes; More right than right; Consensus over preference."}'
or you can:
npm install -g .
htmlposter -t default -p '{"author":"anonymous","content":"Principles of architecture: trade-offs over absolutes; More right than right; Consensus over preference."}'
article-cover
node bin/index.js -t article-cover -p '{"title":"Domain-Driven Design 101"}'
npm install
node server.js
You can try online demo: http://shaogefenhao.com:8080
You just need follow templates/default, just copy a folder and make sure index.html and meta.json are here. Template compilation by ejs, so you can refer to https://ejs.co
- https://ejs.co/#install
- command-line-app-with-nodejs https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs