文件名称: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.
【文件预览】:
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)