
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
generate-date-list
Advanced tools
Generates a simple list of dates. Useful for serving fixture date to interfaces.
Simple utility that generates a simple list of dates. Useful for creating fixture data for interfaces that are based on dates.
For example, I use this with fixtures for an store that returns a list of events which happen to be based on date. In terms of developing the interface, it would be helpful if these dates stayed current based on "today" since the interface behaves differently based on today versus the dates in the data.
npm install generate-date-list --save-dev
Signature:
generateDateList(<length>, <incrementorCallback>, [<startDate>]);
length is the total length of the resulting array.incrementorCallback is a function that generates the desired date. It is only given the last date created as an argument.startDate is a Date object. Although not required, it will default to "today". Inclusive; the first item in the array is always this item.Example:
import generateDateList from 'generate-date-list';
const incrementor = (lastDate) => {
// Do something to the last date
lastDate.setDate(lastDate.getDate() + 1);
return lastDate;
}
const dates = generateDateList(10, incrementor);
Use the following paths to pull in the package into your project
node_modules/generate-date-list/dist/amd/generate-date-list.jsnode_modules/generate-date-list/dist/cjs/generate-date-list.jsnode_modules/generate-date-list/dist/global/generate-date-list.jsMIT
FAQs
Generates a simple list of dates. Useful for serving fixture date to interfaces.
The npm package generate-date-list receives a total of 0 weekly downloads. As such, generate-date-list popularity was classified as not popular.
We found that generate-date-list 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.