Skip to main content

Benji's personal standard library. Collection of tools for manipulating strings, async iterables, shell scripting, and common data structures.

This package works with Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
76%
Published
a month ago (1.5.1)

Classes

c
EventStream

Helper class to handle events and turn them into async iterables

Functions

f
each

Iterate over an async iterable, calling a callback for each value.

f
once

Wait for any async iterable to yield a specific value according to a predicate.

f
pinkyPromise

A "destructured" Promise, useful for waiting for callbacks.

f
wait

Promise that resolves after timeout, optionally with a value to resolve with.

Add Package

deno add jsr:@mindfulminun/pear

Import symbol

import * as mod from "@mindfulminun/pear/core/async";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@mindfulminun/pear/core/async";

Add Package

npx jsr add @mindfulminun/pear

Import symbol

import * as mod from "@mindfulminun/pear/core/async";

Add Package

yarn dlx jsr add @mindfulminun/pear

Import symbol

import * as mod from "@mindfulminun/pear/core/async";

Add Package

pnpm dlx jsr add @mindfulminun/pear

Import symbol

import * as mod from "@mindfulminun/pear/core/async";

Add Package

bunx jsr add @mindfulminun/pear

Import symbol

import * as mod from "@mindfulminun/pear/core/async";