
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
moment-array-dates
Advanced tools
A small utility function that returns an array of formatted date strings.
npm install --save moment-array-dates
var dateArray = require('moment-array-dates');
Returns an array of formatted dates including the start and end dates. Format and the last boolean parameter is optional.
dateArray.range('09/01/2016', '09/05/2016', 'MMM DD', true)
Output: [ 'Sep 01', 'Sep 02', 'Sep 03', 'Sep 04', 'Sep 05' ]
Returns an array of formatted dates from the last n days excluding today. Format and the last boolean parameter is optional.
# today: October 25, 2016
dateArray.lastNDays(5, 'MMM DD', true)
Output: [ 'Oct 20', 'Oct 21', 'Oct 22', 'Oct 23', 'Oct 24' ]
Returns an array of formatted dates from the next n days excluding today. Format and the last boolean parameter is optional.
# today: October 25, 2016
dateArray.nextNDays(5, 'MMM DD', true)
Output: [ 'Oct 26', 'Oct 27', 'Oct 28', 'Oct 29', 'Oct 30' ]
MIT
FAQs
A small utility function that returns an array of formatted date strings.
The npm package moment-array-dates receives a total of 59 weekly downloads. As such, moment-array-dates popularity was classified as not popular.
We found that moment-array-dates 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.