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

google-finance-data

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-finance-data - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

test.js

6

index.js

@@ -100,7 +100,1 @@ 'use strict';

exports.getSymbol = getSymbol;
/*
getSymbol("msft")
.then(data => console.log(JSON.stringify(data, null, 2)))
.catch(err => console.error(err.stack ? err.stack : err));
*/

2

package.json
{
"name": "google-finance-data",
"version": "0.0.2",
"version": "0.0.3",
"description": "Real-time stock quotes and data from Google Finance for Node.js",

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

# google-finance-data
Real-time stock quotes and data from Google Finance for Node.js
## Install
```
$ npm install google-finance-data --save
```
## Usage
```javascript
var google = require("google-finance-data");
google.getSymbol("msft")
.then(data => console.log(JSON.stringify(data, null, 2)))
.catch(err => console.error(err.stack ? err.stack : err));
/*
{
"symbol": "MSFT",
"companyName": "Microsoft Corporation",
"ticker": "NASDAQ:MSFT",
"last": 95.16,
"open": 93.32,
"high": 95.37,
"low": 92.92,
"marketCap": "726.78B",
"peRatio": 26.42,
"yield": 1.77,
"prevClose": 94.07,
"high52week": 97.9,
"low52week": 67.14
}
*/
```
## License
MIT license; see [LICENSE](./LICENSE).
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