![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
moir
Advanced tools
Readme
Moir.js is a simple random value generation util. It uses a simple RegEx-like dialect to generate random values.
npm install moir
var moir = require('moir');
var random_id = moir('[a-z]{30,40}');
console.log(random_id); // szuwmlukrdfcipxlaoivazjvqeqrjlenrhezsu
Moir uses a syntax similar to Javascript's Regex with subtle differences
ABC
=> ABCABC{2}[]
=> 'ABCC[]'* (zero or more) [abc]*
=> '' OR 'aabbccaaaaabbbaa'
+ (one or more) [ABC]+
=> 'A' OR 'B' OR 'C' OR 'AABBABABBACC'
? (zero or one) A?
=> '' OR 'A'
{N} (Exactly N) 9{3}
=> 999
{N,M} (Between N and M) @{3,4}
=> '@@@' OR '@@@@'
{N,} (At least N) u{4}
=> 'uuuu' OR 'uuuuuuuuuuu'
var moir = require('moir');
var random_phone = moir('+[0-9]{3}-[0-9]{4}-[0-9]{3}');
console.log(random_phone); // +537-8190-597
var random_date = moir('19[0-9]{2}-[0-1][1-2]-[1-3][0-1]');
console.log(random_date); //1990-02-10
var random_gmail = moir('[a-z]{3}[aeiou]{1,2}[a-z]{4}_?[0-9]{0,2}@gmail.com');
console.log(random_gmail); //obeeeryxa_06@gmail.com
FAQs
A simple util for random value generation
The npm package moir receives a total of 29 weekly downloads. As such, moir popularity was classified as not popular.
We found that moir 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.