Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This npm module provides a simple interface to fetch the current price of the S&P500 from the Yahoo Finance API.
It's used by my Inflation Calculator website, in particular the section on Real S&P return.
npm install sp500
Basic usage via fetch
:
const sp500 = require('sp500');
sp500.fetch((err, result) => {
console.log('Current value is:', result);
});
Constant updates via getMostRecent
:
sp500.startPolling(30 * 1000); // Update every 30 seconds.
// sp500.startPolling(); // Defaults to updating once every 5 min.
// Elsewhere in your app...
setInterval(() => {
console.log('Updated value:', sp500.getMostRecent().value); // A Number
console.log('Updated at:', sp500.getMostRecent().timestamp); // A JS Date object
}, 30 * 1000);
// Eventually
sp500.stopPolling();
FAQs
Fetches the current S&P 500 price from Yahoo Finance API.
The npm package sp500 receives a total of 0 weekly downloads. As such, sp500 popularity was classified as not popular.
We found that sp500 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.