[Pkg-javascript-commits] [node-restore-cursor] 01/04: Import Upstream version 1.0.1
Paolo Greppi
paolog-guest at moszumanska.debian.org
Thu Dec 22 23:19:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
paolog-guest pushed a commit to branch master
in repository node-restore-cursor.
commit 6a0620fb2fb61290c3c0b0ea9d309b62c0c5568e
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date: Wed Dec 21 14:14:58 2016 +0000
Import Upstream version 1.0.1
---
.editorconfig | 15 +++++++++++++++
.gitattributes | 1 +
.gitignore | 1 +
.jshintrc | 13 +++++++++++++
index.js | 9 +++++++++
license | 21 +++++++++++++++++++++
package.json | 44 ++++++++++++++++++++++++++++++++++++++++++++
readme.md | 25 +++++++++++++++++++++++++
8 files changed, 129 insertions(+)
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..86c8f59
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,15 @@
+root = true
+
+[*]
+indent_style = tab
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[package.json]
+indent_style = space
+indent_size = 2
+
+[*.md]
+trim_trailing_whitespace = false
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..176a458
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+* text=auto
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3c3629e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..804f8af
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,13 @@
+{
+ "node": true,
+ "esnext": true,
+ "bitwise": true,
+ "camelcase": true,
+ "curly": true,
+ "immed": true,
+ "newcap": true,
+ "noarg": true,
+ "undef": true,
+ "unused": "vars",
+ "strict": true
+}
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..c3da545
--- /dev/null
+++ b/index.js
@@ -0,0 +1,9 @@
+'use strict';
+var onetime = require('onetime');
+var exitHook = require('exit-hook');
+
+module.exports = onetime(function () {
+ exitHook(function () {
+ process.stdout.write('\u001b[?25h');
+ });
+});
diff --git a/license b/license
new file mode 100644
index 0000000..654d0bf
--- /dev/null
+++ b/license
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Sindre Sorhus <sindresorhus at gmail.com> (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..71af3ec
--- /dev/null
+++ b/package.json
@@ -0,0 +1,44 @@
+{
+ "name": "restore-cursor",
+ "version": "1.0.1",
+ "description": "Gracefully restore the CLI cursor on exit",
+ "license": "MIT",
+ "repository": "sindresorhus/restore-cursor",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus at gmail.com",
+ "url": "http://sindresorhus.com"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "keywords": [
+ "exit",
+ "quit",
+ "process",
+ "graceful",
+ "shutdown",
+ "sigterm",
+ "sigint",
+ "terminate",
+ "kill",
+ "stop",
+ "cli",
+ "cursor",
+ "ansi",
+ "show",
+ "term",
+ "terminal",
+ "console",
+ "tty",
+ "shell",
+ "command-line"
+ ],
+ "dependencies": {
+ "exit-hook": "^1.0.0",
+ "onetime": "^1.0.0"
+ }
+}
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..be08560
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,25 @@
+# restore-cursor
+
+> Gracefully restore the CLI cursor on exit
+
+Prevent the cursor you've hidden interactively to remain hidden if the process crashes.
+
+
+## Install
+
+```sh
+$ npm install --save restore-cursor
+```
+
+
+## Usage
+
+```js
+var restoreCursor = require('restore-cursor');
+restoreCursor();
+```
+
+
+## License
+
+MIT © [Sindre Sorhus](http://sindresorhus.com)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-restore-cursor.git
More information about the Pkg-javascript-commits
mailing list