
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@easy-ds-bot/utils
Advanced tools
Tiny TypeScript utils: wait(), arrayFromIterator(), chanceRandom(), formatNumber(), equal(), quickTextCompare() and more
Tiny TypeScript utils: wait(), arrayFromIterator(), chanceRandom(), equal() and more
Synchronous:
formatNumber(x: number): stringreportMemory(): voidrandom(min: number, max: number): numberarrRandom(arr: any[]): anychanceRandom(elements: { [key: string]: number }): stringequal(v1: any, v2: any): booleanquickTextCompare(text1: string, text2: string): booleanincludesAll(arr: any[], values: any[]): booleanarrayFromIterator(iterator: IterableIterator<any>): any[]Promises:
wait(time_ms: number): Promise<void>v18 or newerutils via npm:npm i @easy-ds-bot/utils
// file.js, type: CJS
const { random, arrRandom } = require("@easy-ds-bot/utils");
let colors = ["red", "green", "blue"];
console.log(`Random int: ${random(1, 100)}, random color: ${arrRandom(colors)}`);
//> Random int: 32, random color: blue
//...it is one of 300 variants
...or:
// file.js, type: ESM
import { random, arrRandom } from "@easy-ds-bot/utils";
let colors = ["red", "green", "blue"];
console.log(`Random int: ${random(1, 100)}, random color: ${arrRandom(colors)}`);
//> Random int: 32, random color: blue
//...it is one of 300 variants
formatNumber(10num): x 2,148,840 ops/sec ±2.24% (88 runs sampled)
includesAll(5elem, 5elem): x 27,266,638 ops/sec ±1.76% (93 runs sampled)
await wait(1) x 763,328 ops/sec ±3.00% (79 runs sampled)
arrayFromIterator(5elem):
random(1, 100) x 94,517,357 ops/sec ±0.92% (87 runs sampled)
arrRandom(5elem) x 95,086,408 ops/sec ±0.52% (94 runs sampled)
chanceRandom(5elem) x 2,063,074 ops/sec ±1.68% (93 runs sampled)
equal(str5char) x 198,447,672 ops/sec ±0.21% (93 runs sampled)
equal(arr5elem) x 202,415,487 ops/sec ±0.17% (95 runs sampled)
equal(obj5elem) x 6,218,884 ops/sec ±0.39% (97 runs sampled)
quickTextCompare(5word) x 1,142,553 ops/sec ±0.22% (97 runs sampled)
quickTextCompare(500word) x 26,003 ops/sec ±0.24% (95 runs sampled)
quickTextCompare(50_000word) x 224 ops/sec ±0.66% (82 runs sampled)
FAQs
Tiny TypeScript utils: wait(), arrayFromIterator(), chanceRandom(), formatNumber(), equal(), quickTextCompare() and more
The npm package @easy-ds-bot/utils receives a total of 12 weekly downloads. As such, @easy-ds-bot/utils popularity was classified as not popular.
We found that @easy-ds-bot/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.
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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.