2.0.0 • Published 10 months ago

simple-update-notifier v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

simple-update-notifier GitHub stars

CI Dependencies npm npm bundle size npm downloads License

Simple update notifier to check for npm updates for cli applications.

Checks for updates for an npm module and outputs to the command line if there is one available. The result is cached for the specified time so it doesn't check every time the app runs.

Install

npm install simple-update-notifier
OR
yarn add simple-update-notifier

Usage

import updateNotifier from 'simple-update-notifier';
import packageJson from './package.json' assert { type: 'json' };

updateNotifier({ pkg: packageJson });

Options

pkg

Type: object

name

Required\ Type: string

version

Required\ Type: string

updateCheckInterval

Type: number\ Default: 1000 * 60 * 60 * 24 (1 day)

How often to check for updates.

shouldNotifyInNpmScript

Type: boolean\ Default: false

Allows notification to be shown when running as an npm script.

distTag

Type: string\ Default: 'latest'

Which dist-tag to use to find the latest version.

alwaysRun

Type: boolean\ Default: false

When set, updateCheckInterval will not be respected and a check for an update will always be performed.

debug

Type: boolean\ Default: false

When set, logs explaining the decision will be output to stderr whenever the module opts to not print an update notification

nodemonhexa-node-common@infinitebrahmanuniverse/nolb-simple-u@fsp-fs/electron-builderexpress-api-pack-tropea-bootstraap@everything-registry/sub-chunk-2766@kandelvijaya/homebridge-philipsair-platform@juanaraneta/dept-central-lib-client@junk-temporary-prototypes/clishaina9-12-1gmojjsiotgjfogjtrack-time-clitype-libaryts-joi-objectidhttp-server-md@ajayos/nodemonv22-electron-builder@digitalrakesh/jsuihello-heratteste_cegidewm-dico-engineteapackage-tatespoorman297sigyetesting-storybookjs-quiz-toolvue-picocsssaturninoelectron-builder-testelectron-builderseaotterrolandewappsto-cli@mitech/onit-cli@nppkg/react-dnd@riscv-forks/electron-builder@overwolf/ow-electron-builder@overwolf/ow-electron-builder-test@mablhq/mabl-cli@madgex/fert@storybook-nuxt/cli@storybook-vue/cli@sudophunk/v4-client@storybook/cli@swiftmr/electron-builder@walkthunder/electron-buildercodeboostcode-geniusopea-bootstrapcalibrepolyglot-component-libraryclassgroliapropertymanagentclass9cpacedoxdox-cli@wacoco/ynodejs_batch1_22maynodejsmasterajayos-nodemonappxgenopenai-node-expressorganization-artificial-intelligence-computer-vision-website-application-electronorganization-robotics-sensors-website-application-electronorganization-algorithm-model-research-website-application-electronorganization-application-ui-ux-website-application-electronlx_mod-mainmatrix_implementationlizikang01yanbaobaoyanbaobao1@githubnext/github-copilot-climinajscreatoremina-salib-mobtimer-api2@img-arena/img-ui-mui-theme@img-arena/ui-coremjl001@infosupport/kc-cli
2.0.0

10 months ago

1.1.0

1 year ago

1.0.8

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago