Package Exports
- char-spinner
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (char-spinner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
char-spinner
Put a little spinner on process.stderr, as unobtrusively as possible.
USAGE
var spinner = require("char-spinner")
// All options are optional
// even the options argument itself is optional
spinner(options)OPTIONS
Usually the defaults are what you want. Mostly they're just configurable for testing purposes.
streamOutput stream. Default=process.stderrttyOnly show spinner if output stream has a truish.isTTY. Default=truestringString of chars to spin. Default='/-\\|'intervalNumber of ms between frames, bigger = slower. Default=50cleanupPrint'\r \r'to stream on process exit. Default=trueunrefUnreference the spinner interval so that the process can exit normally. Default=truedelayNumber of frames to "skip over" before printing the spinner. Useful if you want to avoid showing the spinner for very fast actions. Default=2
Returns the generated interval, if one was created.