Socket
Socket
Sign inDemoInstall

log-update

Package Overview
Dependencies
15
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 3.0.0

6

index.js

@@ -7,3 +7,3 @@ 'use strict';

const getWidth = stream => {
const columns = stream.columns;
const {columns} = stream;

@@ -30,3 +30,3 @@ if (!columns) {

const render = function () {
const render = (...args) => {
if (!options.showCursor) {

@@ -36,3 +36,3 @@ cliCursor.hide();

let out = [].join.call(arguments, ' ') + '\n';
let out = args.join(' ') + '\n';
out = wrapAnsi(out, getWidth(stream), {

@@ -39,0 +39,0 @@ trim: false,

{
"name": "log-update",
"version": "2.3.0",
"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": ">=4"
},
"scripts": {
"test": "xo && node test.js"
},
"files": [
"index.js"
],
"keywords": [
"log",
"logger",
"logging",
"cli",
"terminal",
"term",
"console",
"shell",
"update",
"refresh",
"overwrite",
"output",
"stdout",
"progress",
"bar",
"animation"
],
"dependencies": {
"ansi-escapes": "^3.0.0",
"cli-cursor": "^2.0.0",
"wrap-ansi": "^3.0.1"
},
"devDependencies": {
"xo": "*"
}
"name": "log-update",
"version": "3.0.0",
"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": ">=6"
},
"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": "^3.2.0",
"cli-cursor": "^2.1.0",
"wrap-ansi": "^5.0.0"
},
"devDependencies": {
"ava": "^1.2.1",
"terminal.js": "^1.0.10",
"xo": "^0.24.0"
}
}

@@ -20,2 +20,3 @@ # log-update [![Build Status](https://travis-ci.org/sindresorhus/log-update.svg?branch=master)](https://travis-ci.org/sindresorhus/log-update)

const logUpdate = require('log-update');
const frames = ['-', '\\', '|', '/'];

@@ -40,3 +41,3 @@ let i = 0;

### logUpdate(text, ...)
### logUpdate(text…)

@@ -54,3 +55,3 @@ Log to stdout.

### logUpdate.stderr(text, ...)
### logUpdate.stderr(text…)

@@ -57,0 +58,0 @@ Log to stderr.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc