Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gticker

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

gticker - npm Package Compare versions

Comparing version 1.0.4 to 1.0.6

9

index.js

@@ -18,6 +18,7 @@ #!/usr/bin/env node

var toPrint = stocks.reduce(function(prev, stock) {
// stock.el quotes in pre-market
// stock.l quotes during the market
var p = stock.el || stock.l;
return prev + sprintf("%s %.2f (%.2f%%) ", stock.t, p, stock.cp);
if (stock.el && stock.ecp) { // pre-market, after-hours
return prev + sprintf("%s %.2f (%.2f%%) ", stock.t, stock.el, stock.ecp);
} else {
return prev + sprintf("%s %.2f (%.2f%%) ", stock.t, stock.l, stock.cp);
}
}, '');

@@ -24,0 +25,0 @@ console.log(toPrint);

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

"description": "command line stock ticker",
"version": "1.0.4",
"version": "1.0.6",
"description": "",

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

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