JSPM

live-stock-price

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q55418F
  • License MIT

Live Stock Price is an NPM package that provides live stock data prices for a given symbol. It fetches the stock price from Yahoo Finance using web scraping techniques.

Package Exports

  • live-stock-price
  • live-stock-price/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (live-stock-price) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Live Stock Price

npm version GitHub license

Live Stock Price is an NPM package that provides live stock data prices for a given symbol. It fetches the stock price from Yahoo Finance using web scraping techniques.

Installation

npm install live-stock-price

Usage

const liveStockPrice = require('live-stock-price');

liveStockPrice('AAPL')
    .then((price) => {
        console.log('Stock price:', price);
    })
    .catch((error) => {
        console.error('Error:', error);
    });

Replace 'AAPL' with the desired stock symbol. The liveStockPrice function returns a promise that resolves to the live stock price.

License

This project is licensed under the MIT License - see the MIT License file for details.