Skip to content

About

ignore console(error,log,warn...)

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

ignore-console

ignore console(error,log,warn...) (主要为了解决 antd 4.23+ 开发环境下疯狂抛 error 提示 deprecated 的问题 😠)

Installation

npm i ignore-console

Usage

import ignoreConsole from "ignore-console"

// use default options
ignoreConsole()

// or custom
ignoreConsole({
    //show ignored info tips. default:false
    showLog: true;
    // the environment take effect. default:["development"]
    env:["development"];
    // the type of console. default: error
    type: "error";
    // default:["Warning: \\[antd:"] 🙂
    ignoreRule: ["Warning: \\[antd:","you jump i jump"];
})

About

ignore console(error,log,warn...)

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages