
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
A modern collection of reusable utility functions for JavaScript and TypeScript, designed to simplify everyday development tasks.
A collection of utility functions for common JavaScript/TypeScript.A modern collection of reusable utility functions for JavaScript and TypeScript, designed to simplify everyday development tasks.
npm install rgx-utils
import { pipeline } from 'rgx-utils';
const [op1, op2] = pipeline({
input: [5, 2, 8, 3, 1, 4],
filter: (num) => num % 2 === 0,
map: {
matched: (num) => num * num,
unmatched: (num) => -num,
},
sort: {
matched: (a, b) => a - b,
unmatched: (a, b) => a - b,
},
});
console.log("op1:", op1); // [4, 16, 64]
console.log("op2:", op2); // [-5, -3, -1]
import { generatePassword } from 'rgx-utils';
generatePassword(12); // Generates a 12-character password
import { getBase64 } from 'rgx-utils';
// For files:
const fileBase64 = await getBase64(file);
import { slug } from 'rgx-utils';
const urlSlug = slug('Some String to Slugify'); // "some-string-to-slugify"
import { truncate } from 'rgx-utils';
const shortText = truncate('Very long text here', 10); // "Very long..."
const customEllipsis = truncate('Very long text here', 10, ' >>'); // "Very long >>"
Contributions are welcome! Feel free to open issues or submit pull requests to contribute to this project.
This package is open-source and available under the MIT License.
FAQs
A modern collection of reusable utility functions for JavaScript and TypeScript, designed to simplify everyday development tasks.
We found that rgx-utils 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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.