Skip to content

Commit

Permalink
Rename boxenOpts option to boxenOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 12, 2019
1 parent bc1721a commit 39682de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ class UpdateNotifier {
options.message = options.message || 'Update available ' + chalk().dim(this.update.current) + chalk().reset(' → ') +
chalk().green(this.update.latest) + ' \nRun ' + chalk().cyan(installCommand) + ' to update';

options.boxenOpts = options.boxenOpts || {
options.boxenOptions = options.boxenOptions || {
padding: 1,
margin: 1,
align: 'center',
borderColor: 'yellow',
borderStyle: 'round'
};

const message = '\n' + boxen()(options.message, options.boxenOpts);
const message = '\n' + boxen()(options.message, options.boxenOptions);

if (options.defer === false) {
console.error(message);
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Default: Auto-detect

Include the `-g` argument in the default message's `npm i` recommendation. You may want to change this if your CLI package can be installed as a dependency of another project, and don't want to recommend a global installation. This option is ignored if you supply your own `message` (see above).

##### boxenOpts
##### boxenOptions

Type: `object`\
Default: `{padding: 1, margin: 1, align: 'center', borderColor: 'yellow', borderStyle: 'round'}` *(See screenshot)*
Expand Down

0 comments on commit 39682de

Please # to comment.