Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@artus-cli/plugin-npmcheckupdate

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artus-cli/plugin-npmcheckupdate

A artus-cli plugin be used to display upgrade info

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
2
Created
Source

artus-cli/plugin-npmcheckupdate

A artus-cli plugin be used to display upgrade info

NPM version NPM quality NPM download Continuous Integration Test coverage Oss Insight Analytics

Install

$ npm i @artus-cli/plugin-npmcheckupdate 

Usage

// plugin.ts

export default {
  npmcheckupdate: {
    enable: true,
    package: '@artus-cli/plugin-npmcheckupdate',
  },
};

Configuration

export interface NpmCheckUpdateConfig {
  /** unpkg url, default is https://unpkg.com/ */
  unpkgUrl?: string;
  /** the file be used to cache last update info */
  cacheFile?: string;
  /** check inerval with local cache, default is 1 day */
  checkInterval?: string | number;
  /** upgrade policy, canbe major/minor/patch or dist-tags, default is latest */
  upgradePolicy?: 'major' | 'minor' | 'patch' | DistTag;
  /** whether enable CheckUpdateCommand, default is true */
  enableCommand?: boolean;
  /** whether enable intercept in all command? default is true */
  enableInterceptor?: boolean | ((cmd: typeof Command) => boolean);
  /** the position of upgrade info, default is after */
  upgradeInfoPrintPosition?: 'before' | 'after';
  /** customize your special upgrade info */
  upgradeInfoHooks?: {
    /** customize contents only */
    contents?: (upgradeInfo: UpgradeInfo, contents: string[]) => string | string[];
    /** customize all info */
    fullContents?: (upgradeInfo: UpgradeInfo, fullContents: string[]) => string | string[];
  };
}

Keywords

artus

FAQs

Package last updated on 15 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts