Skip to content

Function: updateNotifierPlugin()

ts
function 
updateNotifierPlugin
(
__namedParameters
): Plugin;

Defined in: packages/plugin-update-notifier/src/index.ts:35

Plugin to check for CLI updates using update-notifier.

Parameters

ParameterType
__namedParametersUpdateNotifierPluginOptions

Returns

Plugin

Example

ts
import { 
Clerc
} from "@clerc/core";
import {
updateNotifierPlugin
} from "@clerc/plugin-update-notifier";
import
pkg
from "./package.json";
Clerc
.
create
().
use
(
updateNotifierPlugin
({
pkg
})).
parse
();

在 MIT 许可证下发布