Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@paul-shuvo/nodejs-stock-info
Advanced tools
A nodejs library to fetch stock info that doesn't require subscribing to any API calls.
Disclaimer: This package fetch the result from finance.yahoo.com using web scrapping. Owner will not be responsible for any misuse of this package. This is solely for the purpose of learning.
This package can be installed using npm
npm install stock-info
or, yarn
yarn add stock-info
Import stock-info
.
const SI = require('stock-info')
Then instantiate with either the empty constructor
let stockInfo = new SI()
Or, with a string or list of strings corresponding to the stock e.g. "amzn"
or ["amzn", "aapl"]
let stockInfo = new SI("amzn")
// or
let stockInfo = new SI(["amzn", "aapl"])
The getStockInfo
method will return the latest stock information and can be used as a promise.
stockInfo.getStockInfo().then((response) => {
console.log(response) //or do something else
})
Chaining is also supported.
stockInfo.setStocks("tsla").getStockInfo().then((response) => {
console.log(response) //or do something else
})
If any issues are found, they can be reported here.
This project is licensed under the MIT license.
FAQs
A nodejs library to fetch stock info that doesn't require subscribing to any API calls.
We found that @paul-shuvo/nodejs-stock-info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.