> For the complete documentation index, see [llms.txt](https://super-yusuke.gitbook.io/automate-the-boring-stuff-with-node-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://super-yusuke.gitbook.io/automate-the-boring-stuff-with-node-js/commander-woshita-cli-no/untitled-1.md).

# 装飾する

ターミナルへの表示を装飾するライブラリを紹介します。

```javascript
// アスキーアートを出力できるライブラリ
const figlet = require("figlet");
// 色をつけられるプラグイン
const chalk = require("chalk");

// figlet がアスキーアートを出力する
console.log(
  chalk.red(
    figlet.textSync("My First CLI", {
      horizontalLayout: "full"
    })
  )
);

// chalk は色をつける
console.log(chalk.blue("Hi this is Blue Message"));
```

![](https://327111444-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAN8uxDKlUMSXZqf6Ce%2F-LBMCYU5Wb5QCPybcwYu%2F-LBMCaCsMPcp-V5DXOfR%2FScreen%20Shot%202018-05-01%20at%2012.40.06%20AM.png?alt=media\&token=6ffb44ef-ca7f-4988-886c-4ff8e6b0b423)
