-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add template support for the
message
option (#175)
Co-authored-by: Sindre Sorhus <[email protected]>
- Loading branch information
1 parent
adf7803
commit adbeb6e
Showing
4 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,6 +156,20 @@ Default: [See above screenshot](https://github.com/yeoman/update-notifier#update | |
|
||
Message that will be shown when an update is available. | ||
|
||
Available placeholders: | ||
|
||
- `{packageName}` - Package name. | ||
- `{currentVersion}` - Current version. | ||
- `{latestVersion}` - Latest version. | ||
- `{updateCommand}` - Update command. | ||
|
||
```js | ||
notifier.notify({message: 'Run `{updateCommand}` to update.'}); | ||
|
||
// Output: | ||
// Run `npm install [email protected]` to update. | ||
``` | ||
|
||
##### isGlobal | ||
|
||
Type: `boolean`\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters