
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Generate a random day.
$ npm install --save random-day
var randomDay = require('random-day');
// API
// - randomDay([options]);
// options
// - year
// - month
// - min
// - max
By default, returns a day in a random month, from 1
to 31
.
randomDay();
// => 23
Optionally specify month:
randomDay({ month: 1 }); // 1~31
// => 12
Optionally specify year when month is 2
to figure out leap years:
randomDay({ year: 2016 month: 2 }); // 1~29
// => 18
Optionally specify min, max, or both to limit the range.
randomDay({ min: 10 });
// => 11
randomDay({ max: 10 });
// => 7
randomDay({ min: 3, max: 9 });
// => 6
random-year - Generate a random year.
random-month - Generate a random month.
random-hour - Generate a random hour.
random-minute - Generate a random minute.
random-second - Generate a random second.
random-millisecond - Generate a random millisecond.
random-weekday - Generate a random weekday.
random-datetime - Generate a random date.
random-ampm - Return am or pm. Very simple.
random-timestamps - Generate a timestamp.
random-hammertime - Generate a random hammertime.
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.
FAQs
Generate a random day.
The npm package random-day receives a total of 5,279 weekly downloads. As such, random-day popularity was classified as popular.
We found that random-day 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.