Node.js formatted console output

后端 未结 6 602
说谎
说谎 2021-01-31 13:24

Is there a simple built-in way to output formatted data to console in Node.js?

Indent, align field to left or right, add leading zeros?

6条回答
  •  野的像风
    2021-01-31 14:06

    You might also like string-kit and terminal-kit.

    https://www.npmjs.com/package/string-kit

    https://www.npmjs.com/package/terminal-kit

    https://blog.soulserv.net/terminal-friendly-application-with-node-js-part-ii-moving-and-editing/

提交回复
热议问题