Comparing version 2.0.0 to 2.1.0
16
index.js
@@ -7,10 +7,22 @@ 'use strict'; | ||
exports.show = stream => { | ||
const s = stream || process.stderr; | ||
if (!s.isTTY) { | ||
return; | ||
} | ||
hidden = false; | ||
(stream || process.stderr).write('\u001b[?25h'); | ||
s.write('\u001b[?25h'); | ||
}; | ||
exports.hide = stream => { | ||
const s = stream || process.stderr; | ||
if (!s.isTTY) { | ||
return; | ||
} | ||
restoreCursor(); | ||
hidden = true; | ||
(stream || process.stderr).write('\u001b[?25l'); | ||
s.write('\u001b[?25l'); | ||
}; | ||
@@ -17,0 +29,0 @@ |
{ | ||
"name": "cli-cursor", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Toggle the CLI cursor", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
3155
30