Skip to content

Commit 8df01b3

Browse files
renatoagdssindresorhus
authored andcommitted
Fix docs position of shouldNotifyInNpmScript (#143)
1 parent d371834 commit 8df01b3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

readme.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ Type: `Function`
115115

116116
Passing a callback here will make it check for an update directly and report right away. Not recommended as you won't get the benefits explained in [`How`](#how). `update` is equal to `notifier.update`.
117117

118+
#### shouldNotifyInNpmScript
119+
120+
Type: `boolean`<br>
121+
Default: `false`
122+
123+
Allows notification to be shown when running as an npm script.
124+
118125
### notifier.notify([options])
119126

120127
Convenience method to display a notification message. *(See screenshot)*
@@ -153,12 +160,6 @@ Default: `{padding: 1, margin: 1, align: 'center', borderColor: 'yellow', border
153160

154161
Options object that will be passed to [`boxen`](https://github.com/sindresorhus/boxen).
155162

156-
##### shouldNotifyInNpmScript
157-
158-
Type: `boolean`<br>
159-
Default: `false`
160-
161-
Allows notification to be shown when running as an npm script.
162163

163164
### User settings
164165

0 commit comments

Comments
 (0)