mermaid-js / mermaid-cli

Command line tool for the Mermaid library
MIT License
2.35k stars 227 forks source link

Simplify the `getInputData()` function #545

Closed aloisklink closed 1 year ago

aloisklink commented 1 year ago

:bookmark_tabs: Summary

This is pretty minor, but currently the getInputData() function is:

I've simplified the function, and replaced some of the manual promise() code with Node.JS's fs.promises API.

:straight_ruler: Design Decisions

Originally, I made these commits a long time ago, but forgot about them!

:clipboard: Tasks

Make sure you