mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-17 07:43:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
30
node_modules/log-update/index.js
generated
vendored
Normal file
30
node_modules/log-update/index.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
'use strict';
|
||||
var ansiEscapes = require('ansi-escapes');
|
||||
var cliCursor = require('cli-cursor');
|
||||
|
||||
function main(stream) {
|
||||
var prevLineCount = 0;
|
||||
|
||||
var render = function () {
|
||||
cliCursor.hide();
|
||||
var out = [].join.call(arguments, ' ') + '\n';
|
||||
stream.write(ansiEscapes.eraseLines(prevLineCount) + out);
|
||||
prevLineCount = out.split('\n').length;
|
||||
};
|
||||
|
||||
render.clear = function () {
|
||||
stream.write(ansiEscapes.eraseLines(prevLineCount));
|
||||
prevLineCount = 0;
|
||||
};
|
||||
|
||||
render.done = function () {
|
||||
prevLineCount = 0;
|
||||
cliCursor.show();
|
||||
};
|
||||
|
||||
return render;
|
||||
}
|
||||
|
||||
module.exports = main(process.stdout);
|
||||
module.exports.stderr = main(process.stderr);
|
||||
module.exports.create = main;
|
||||
21
node_modules/log-update/license
generated
vendored
Normal file
21
node_modules/log-update/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@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.
|
||||
47
node_modules/log-update/package.json
generated
vendored
Normal file
47
node_modules/log-update/package.json
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "log-update",
|
||||
"version": "1.0.2",
|
||||
"description": "Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc.",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/log-update",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"log",
|
||||
"logger",
|
||||
"logging",
|
||||
"cli",
|
||||
"terminal",
|
||||
"term",
|
||||
"console",
|
||||
"shell",
|
||||
"update",
|
||||
"refresh",
|
||||
"overwrite",
|
||||
"output",
|
||||
"stdout",
|
||||
"progress",
|
||||
"bar",
|
||||
"animation"
|
||||
],
|
||||
"dependencies": {
|
||||
"ansi-escapes": "^1.0.0",
|
||||
"cli-cursor": "^1.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
}
|
||||
}
|
||||
65
node_modules/log-update/readme.md
generated
vendored
Normal file
65
node_modules/log-update/readme.md
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
# log-update [](https://travis-ci.org/sindresorhus/log-update)
|
||||
|
||||
> Log by overwriting the previous output in the terminal.
|
||||
> Useful for rendering progress bars, animations, etc.
|
||||
|
||||

|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save log-update
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var logUpdate = require('log-update');
|
||||
|
||||
var i = 0;
|
||||
var frames = ['-', '\\', '|', '/'];
|
||||
|
||||
setInterval(function () {
|
||||
var frame = frames[i++ % frames.length];
|
||||
logUpdate('\n' + ' ♥♥\n ' + frame + ' unicorns ' + frame + '\n ♥♥');
|
||||
}, 100);
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### logUpdate(text, ...)
|
||||
|
||||
Log to stdout.
|
||||
|
||||
### logUpdate.clear()
|
||||
|
||||
Clear the logged output.
|
||||
|
||||
### logUpdate.done()
|
||||
|
||||
Persist the logged output.
|
||||
Useful if you want to start a new log session below the current one.
|
||||
|
||||
### logUpdate.stderr(text, ...)
|
||||
|
||||
Log to stderr.
|
||||
|
||||
### logUpdate.stderr.clear()
|
||||
### logUpdate.stderr.done()
|
||||
|
||||
### logUpdate.create(stream)
|
||||
|
||||
Get a `logUpdate` method that logs to the specified stream.
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
- [speed-test](https://github.com/sindresorhus/speed-test) - Uses this module to render a spinner
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user