
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
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 1 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.