A simple script that uses a svg as a template for generating images for the meetup events of Devstaff.
- Clone the repo.
- Install the dependencies.
npm install
- Run the script.
node index.js--date: An ISO date string. For example:1998-05-11.--title: The title of the event. For example:A great event by Aggelos Bellos.--secondaryTitle: The secondary title of the event. For example:The main title was too big so I have to use another line.
- An
image.jpgwill appear where you run the script.
The script uses the meetup-template.svg and fills it with the provided arguments.
Then, through the usage of puppeteer, it takes a screenshot of the svg and saves it as image.jpg.