Comparing version 1.0.1 to 1.0.2
@@ -5,4 +5,2 @@ 'use strict'; | ||
restoreCursor(); | ||
exports.show = function () { | ||
@@ -14,2 +12,3 @@ hidden = false; | ||
exports.hide = function () { | ||
restoreCursor(); | ||
hidden = true; | ||
@@ -16,0 +15,0 @@ process.stdout.write('\u001b[?25l'); |
{ | ||
"name": "cli-cursor", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Toggle the CLI cursor", | ||
@@ -10,3 +10,3 @@ "license": "MIT", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "http://sindresorhus.com" | ||
"url": "sindresorhus.com" | ||
}, | ||
@@ -17,3 +17,3 @@ "engines": { | ||
"scripts": { | ||
"test": "node test.js" | ||
"test": "xo && ava" | ||
}, | ||
@@ -39,7 +39,8 @@ "files": [ | ||
"dependencies": { | ||
"restore-cursor": "^1.0.0" | ||
"restore-cursor": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"ava": "0.0.4" | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
} |
@@ -10,3 +10,3 @@ # cli-cursor [![Build Status](https://travis-ci.org/sindresorhus/cli-cursor.svg?branch=master)](https://travis-ci.org/sindresorhus/cli-cursor) | ||
```sh | ||
``` | ||
$ npm install --save cli-cursor | ||
@@ -19,7 +19,7 @@ ``` | ||
```js | ||
var cliCursor = require('cli-cursor'); | ||
const cliCursor = require('cli-cursor'); | ||
cliCursor.hide(); | ||
var unicornsAreAwesome = true; | ||
const unicornsAreAwesome = true; | ||
cliCursor.toggle(unicornsAreAwesome); | ||
@@ -26,0 +26,0 @@ ``` |
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
2915
4
2
Updatedrestore-cursor@^1.0.1