fault:输出格式化后的功能错误

时间:2024-05-22 23:11:22
【文件属性】:

文件名称:fault:输出格式化后的功能错误

文件大小:6KB

文件格式:ZIP

更新时间:2024-05-22 23:11:22

format error prinft JavaScript

过错 输出格式错误的功能错误。 安装 该软件包仅适用于ESM:需要使用Node 12+才能使用它,并且必须将其import而不是require d。 : npm install fault 用 import fault from 'fault' throw fault ( 'Hello %s!' , 'Eric' ) 产量: Error: Hello Eric! at FormattedError (~/node_modules/fault/index.js:30:12) at Object. (~/example.js:3:7) … 或者,将浮点格式设置为类型错误: import fault from 'fault' throw fault . type ( 'Who doesn’t like %f? \uD83C\uDF70'


【文件预览】:
fault-main
----.github()
--------workflows()
----.prettierignore(15B)
----funding.yml(15B)
----test.js(2KB)
----license(1KB)
----tsconfig.json(349B)
----.npmrc(19B)
----.editorconfig(147B)
----.gitignore(57B)
----index.js(928B)
----readme.md(3KB)
----package.json(2KB)

网友评论