Create the text file with mermaid`. Try using the editor.
Call the require var tq1docs = require('br-tq1-doc-images');. To generate the images, call the method tq1docs.generate passing the configuration object and a callback function. The options is: