Skip to content

Commit cd02844

Browse files
committed
Fix readme
1 parent f1270bf commit cd02844

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
22
"name": "log-update-async-hook",
3-
"version": "2.0.1",
4-
"description": "Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.",
3+
"version": "2.0.2",
4+
"description": "log-update fork that uses async-exit-hook internally",
55
"license": "MIT",
6-
"repository": "sindresorhus/log-update",
6+
"repository": "AndreyBelym/log-update-async-hook",
77
"author": {
8+
"name": "Andrey Belym",
9+
"email": "belym.a.2105@gmail.com"
10+
},
11+
"contributors": [{
812
"name": "Sindre Sorhus",
913
"email": "sindresorhus@gmail.com",
1014
"url": "sindresorhus.com"
11-
},
15+
}],
1216
"scripts": {
1317
"test": "xo && node test.js"
1418
},

readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# log-update [![Build Status](https://travis-ci.org/sindresorhus/log-update.svg?branch=master)](https://travis-ci.org/sindresorhus/log-update)
1+
# log-update-async-hook [![Build Status](https://travis-ci.org/AndreyBelym/log-update-async-hook.svg?branch=master)](https://travis-ci.org/sindresorhus/log-update)
22

3+
This is a fork of the [log-update](https://github.com/sindresorhus/log-update) by Sindre Sorhus, that uses `async-exit-hook` to restore terminal cursor state when the process terminates.
4+
Usage of `exit-hook` or `signal-exit` hook in the original `log-update` prevents execution of asynchronous operations on signals (`SIGTERM`, `SIGHUP`, etc.) in the code of the main application.
5+
So I've replaced them by `async-exit-hook`, rewritten code to allow execution on Node versions below `4.x` and bundled some dependencies into the package.
6+
37
> Log by overwriting the previous output in the terminal.<br>
48
> Useful for rendering progress bars, animations, etc.
59

0 commit comments

Comments
 (0)