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.0 to 1.0.2

.npmignore

8

index.js

@@ -17,6 +17,8 @@ #!/usr/bin/env node

function printResult(stocks) {
console.log('stocks', stocks);
var toPrint = stocks.reduce(function(prev, stock) {
var l = stock.l; // close price (previous trading day)
var p = stock.el; // stock price in pre-market (after-hours)
return prev + sprintf("%s %d (%.2f%%) ", stock.t, p, (p - l) * 100/l);
// 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);
}, '');

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

{
"author": "chunghe",
"name": "gticker",
"version": "1.0.0",
"description": "command line stock ticker",
"version": "1.0.2",
"description": "",

@@ -6,0 +7,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