tiny-warning:微小的警告功能

时间:2021-05-11 15:58:20
【文件属性】:
文件名称:tiny-warning:微小的警告功能
文件大小:94KB
文件格式:ZIP
更新时间:2021-05-11 15:58:20
JavaScript 小警告 :microscope: :warning: 一个微小的替代方案。 import warning from 'tiny-warning' ; warning ( truthyValue , 'This should not log a warning' ) ; warning ( falsyValue , 'This should log a warning' ) ; // console.warn('Warning: This should log a warning'); API :( (condition: mixed, message: string) => void condition是必需的,可以是任何东西 message是必需的字符串,将被传递到console.warn 为什么要tiny-warning ? 支持以sprintf样式(condition, format, a, b, c, d,
【文件预览】:
tiny-warning-master
----.travis.yml(327B)
----.babelrc(133B)
----rollup.config.js(1KB)
----flow-typed()
--------npm()
----.flowconfig(127B)
----package.json(1KB)
----test()
--------index.spec.js(965B)
--------bundle-size.spec.js(1KB)
----.prettierrc(105B)
----jest.config.js(269B)
----LICENSE(1KB)
----src()
--------index.js(851B)
--------index.d.ts(71B)
----.gitignore(146B)
----README.md(3KB)
----yarn.lock(187KB)

网友评论