npminstall icon indicating copy to clipboard operation
npminstall copied to clipboard

any possible to disable spinners

Open kaelzhang opened this issue 5 years ago • 0 comments

Sometimes npminstall is integrated into another library, and we don't want any outputs including spinners, traces, and details.

But spinner could not be disabled because of here

Is it ok to change the code to

options.spinner = options.spinner === null || options.spinner === false
  // spinners are explicitly disabled by user
  ? null
  :  options.detail 
    ? null
    : ora();

kaelzhang avatar May 11 '19 06:05 kaelzhang