google-finance-data
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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)); | ||
*/ |
{ | ||
"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). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6181
5
38
81