Comparing version 0.4.1 to 1.0.0
@@ -34,3 +34,3 @@ 'use strict'; | ||
this.frameIndex = 0; | ||
this.enabled = this.options.enabled || ((this.stream && this.stream.isTTY) && !process.env.CI); | ||
this.enabled = typeof this.options.enabled === 'boolean' ? this.options.enabled : ((this.stream && this.stream.isTTY) && !process.env.CI); | ||
} | ||
@@ -37,0 +37,0 @@ frame() { |
{ | ||
"name": "ora", | ||
"version": "0.4.1", | ||
"version": "1.0.0", | ||
"description": "Elegant terminal spinner", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -91,6 +91,5 @@ # ora [![Build Status](https://travis-ci.org/sindresorhus/ora.svg?branch=master)](https://travis-ci.org/sindresorhus/ora) | ||
Type: `boolean`<br> | ||
Default: `false` | ||
Type: `boolean` | ||
Force enabling of the spinner regardless of the `stream` not being run inside a TTY context and/or in a CI environment. | ||
Force enable/disable the spinner. If not specified, the spinner will be enabled if the `stream` is being run inside a TTY context (not spawned or piped) and/or not in a CI environment. | ||
@@ -97,0 +96,0 @@ ### Instance |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7637
1
157