Socket
Socket
Sign inDemoInstall

tiny-spinner

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-spinner - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

4

dist/utils.js

@@ -8,5 +8,7 @@ /* IMPORT */

if (process) {
const isTerminal = /(\r?\n|\r)$/.test(line);
process.stdout?.cursorTo?.(0);
process.stdout?.write?.(line);
process.stdout?.write?.(line.trim());
process.stdout?.clearLine?.(1);
process.stdout?.write?.(isTerminal ? '\r\n' : '');
}

@@ -13,0 +15,0 @@ else {

@@ -5,3 +5,3 @@ {

"description": "A simple, yet beautiful, CLI spinner.",
"version": "2.0.1",
"version": "2.0.2",
"type": "module",

@@ -8,0 +8,0 @@ "main": "dist/index.js",

@@ -16,5 +16,8 @@

const isTerminal = /(\r?\n|\r)$/.test ( line );
process.stdout?.cursorTo?.( 0 );
process.stdout?.write?.( line );
process.stdout?.write?.( line.trim () );
process.stdout?.clearLine?.( 1 );
process.stdout?.write?.( isTerminal ? '\r\n' : '' );

@@ -21,0 +24,0 @@ } else {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc