检测终端是否支持Unicode-Node.js开发

时间:2021-05-27 10:49:43
【文件属性】:
文件名称:检测终端是否支持Unicode-Node.js开发
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-27 10:49:43
Node.js Command-line utilities 检测终端是否支持Unicode是否支持Unicode检测终端是否支持Unicode。这对于决定在命令行输出中使用Unicode字符还是回退ASCII字符很有用。 请注意,检查是非常幼稚的。 仅假设所有非Windows终端都支持Unicode和硬代码,而Windows终端确实支持Unicode。 但是,多年来我一直在一些流行的软件包中使用此逻辑,没有出现问题。 安装$ npm install is-unicode-supported用法const isUn
【文件预览】:
is-unicode-supported-main
----index.js(319B)
----test.js(559B)
----package.json(780B)
----index.test-d.ts(121B)
----readme.md(1KB)
----.github()
--------workflows()
----license(1KB)
----index.d.ts(214B)
----.gitignore(23B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(19B)

网友评论