Skip to content
On this page

warn

用于输出警告信息

引入方式

ESM

javascript
import { warn } from "tool-assistant;

示例

javascript
// 引入 warn 函数
import { warn } from "tool-assistant";

// 要输出警告的项目名称
const projectName = "MyProject";

// 警告消息
const message = "Something went wrong!";

// 输出警告
warn(projectName, message);

Released under the MIT License.