Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 13, 2019
1 parent a4b2253 commit 090860b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -34,9 +34,9 @@ class StdinDiscarder {
process.emit('SIGINT');
}

self.oldEmit.apply(this, [event, data, ...args]);
Reflect.apply(self.oldEmit, this, [event, data, ...args]);
} else {
process.stdin.emit.apply(this, [event, data, ...args]);
Reflect.apply(process.stdin.emit, this, [event, data, ...args]);
}
};
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -36,20 +36,20 @@
"idle"
],
"dependencies": {
"chalk": "^2.4.2",
"chalk": "^3.0.0",
"cli-cursor": "^3.1.0",
"cli-spinners": "^2.2.0",
"is-interactive": "^1.0.0",
"log-symbols": "^3.0.0",
"mute-stream": "0.0.8",
"strip-ansi": "^5.2.0",
"strip-ansi": "^6.0.0",
"wcwidth": "^1.0.1"
},
"devDependencies": {
"@types/node": "^12.7.5",
"ava": "^2.4.0",
"get-stream": "^5.1.0",
"tsd": "^0.8.0",
"xo": "^0.24.0"
"tsd": "^0.10.0",
"xo": "^0.25.3"
}
}
22 changes: 11 additions & 11 deletions readme.md
Expand Up @@ -55,7 +55,7 @@ Text to display before the spinner. No prefix text will be displayed if set to a

##### spinner

Type: `string | object`<br>
Type: `string | object`\
Default: `'dots'` <img src="screenshot-spinner.gif" width="14">

Name of one of the [provided spinners](https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json). See `example.js` in this repo if you want to test out different spinners. On Windows, it will always use the `line` spinner as the Windows command-line doesn't have proper Unicode support.
Expand All @@ -71,29 +71,29 @@ Or an object like:

##### color

Type: `string`<br>
Default: `'cyan'`<br>
Type: `string`\
Default: `'cyan'`\
Values: `'black'` `'red'` `'green'` `'yellow'` `'blue'` `'magenta'` `'cyan'` `'white'` `'gray'`

Color of the spinner.

##### hideCursor

Type: `boolean`<br>
Type: `boolean`\
Default: `true`

Set to `false` to stop Ora from hiding the cursor.

##### indent

Type: `number`<br>
Type: `number`\
Default: `0`

Indent the spinner with the given number of spaces.

##### interval

Type: `number`<br>
Type: `number`\
Default: Provided by the spinner or `100`

Interval between each frame.
Expand All @@ -102,7 +102,7 @@ Spinners provide their own recommended interval, so you don't really need to spe

##### stream

Type: `stream.Writable`<br>
Type: `stream.Writable`\
Default: `process.stderr`

Stream to write the output.
Expand All @@ -119,7 +119,7 @@ Note that `{isEnabled: false}` doesn't mean it won't output anything. It just me

##### discardStdin

Type: `boolean`<br>
Type: `boolean`\
Default: `true`

Discard stdin input (except Ctrl+C) while running if it's TTY. This prevents the spinner from twitching on input, outputting broken lines on <kbd>Enter</kbd> key presses, and prevents buffering of input while the spinner is running.
Expand Down Expand Up @@ -166,21 +166,21 @@ Type: `object`

###### symbol

Type: `string`<br>
Type: `string`\
Default: `' '`

Symbol to replace the spinner with.

###### text

Type: `string`<br>
Type: `string`\
Default: Current `'text'`

Text to be persisted after the symbol

###### prefixText

Type: `string`<br>
Type: `string`\
Default: Current `prefixText`

Text to be persisted before the symbol. No prefix text will be displayed if set to an empty string.
Expand Down

0 comments on commit 090860b

Please sign in to comment.