]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/char-spinner/README.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / char-spinner / README.md
1 # char-spinner
2
3 Put a little spinner on process.stderr, as unobtrusively as possible.
4
5 ## USAGE
6
7 ```javascript
8 var spinner = require("char-spinner")
9
10 // All options are optional
11 // even the options argument itself is optional
12 spinner(options)
13 ```
14
15 ## OPTIONS
16
17 Usually the defaults are what you want.  Mostly they're just
18 configurable for testing purposes.
19
20 * `stream` Output stream.  Default=`process.stderr`
21 * `tty` Only show spinner if output stream has a truish `.isTTY`.  Default=`true`
22 * `string` String of chars to spin.  Default=`'/-\\|'`
23 * `interval` Number of ms between frames, bigger = slower.  Default=`50`
24 * `cleanup` Print `'\r \r'` to stream on process exit.  Default=`true`
25 * `unref` Unreference the spinner interval so that the process can
26   exit normally.  Default=`true`
27 * `delay` Number of frames to "skip over" before printing the spinner.
28   Useful if you want to avoid showing the spinner for very fast
29   actions.  Default=`2`
30
31 Returns the generated interval, if one was created.