# 2019.08.30 - 今天是每日时报陪你的第 236 天

[新闻] 刚发现 Ant Design 新增了一个 PageHeader 组件:https://ant.design/components/page-header-cn/ (opens new window)

[文章] 《狼叔:如何正确的学习 Node.js》:https://github.com/i5ting/How-to-learn-node-correctly (opens new window)

[类库] marked 是 Markdown 转换成 HTML 工具,支持 CLI:https://github.com/markedjs/marked (opens new window)

[类库] marked-terminal 扩展,让 Markdown 语法在终端中高亮显示:https://github.com/mikaelbr/marked-terminal (opens new window)

[类库] 我们在开发 CLI 端时,会根据系统的语言类型,显示不同的语言,用的是 os-locale 库:https://github.com/sindresorhus/os-locale (opens new window)

# 配图 - marked-terminal

# 示例 - marked

<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Marked in the browser</title>
</head>
<body>
  <div id="content"></div>
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
  <script>
    document.getElementById('content').innerHTML =
      marked('# Marked in the browser\n\nRendered by **marked**.');
  </script>
</body>
</html>

# 示例 - os-locale

const osLocale = require('os-locale');

(async () => {
	console.log(await osLocale());
	//=> 'zh-CN'
})();

# 今日图 - JavaScript 独特的出场方式

Last Updated: 9/2/2019, 7:39:33 PM