Package Exports
- simple-update-notifier
- simple-update-notifier/build/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simple-update-notifier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
simple-update-notifier
Simple update notifier to check for npm updates for cli applications with zero dependencies.

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 '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.