diff options
author | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 23:08:57 +0300 |
---|---|---|
committer | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 23:08:57 +0300 |
commit | 726b81b19251674e149ccfbb1abacbd837fc6db0 (patch) | |
tree | fbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/single-line-log/README.md | |
parent | 34f0890e175698940d49238097579f44e4d78c89 (diff) | |
download | FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst |
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/single-line-log/README.md')
-rw-r--r-- | node_modules/single-line-log/README.md | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/node_modules/single-line-log/README.md b/node_modules/single-line-log/README.md deleted file mode 100644 index f142e30..0000000 --- a/node_modules/single-line-log/README.md +++ /dev/null @@ -1,56 +0,0 @@ -# single-line-log - -Node.js module that keeps writing to the same line in the console (or a stream). Very useful when you write progress bars, or a status message during longer operations. Supports multilines. - - -## Installation - - npm install single-line-log - - -## Usage - -``` js -var log = require('single-line-log').stdout; -// or pass any stream: -// var log = require('single-line-log')(process.stdout); - -var read = 0; -var size = fs.statSync('super-large-file').size; - -var rs = fs.createReadStream('super-large-file'); -rs.on('data', function(data) { - read += data.length; - var percentage = Math.floor(100*read/size); - - // Keep writing to the same two lines in the console - log('Writing to super large file\n[' + percentage + '%]', read, 'bytes read'); -}); -``` - -## .clear() - -Clears the log (i.e., writes a newline). - -``` js -var log = require('single-line-log').stdout; - -log('Line 1'); -log.clear(); -log('Line 2'); -``` - - -## .stdout - -Outputs to `process.stdout`. - - -## .stderr - -Outputs to `process.stderr`. - - -## License - -MIT
\ No newline at end of file |