Skip to main content

a collection of handwoven dependency-free utility functions, types, and data-structures, used extensively in my other projects. it is super-duper-special-awesome when it comes to modularity, tree-shackability, and minifiability.

This package works with Bun, Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers
JSR Score
58%
Published
4 months ago (0.7.5)

Kitchensink

A messy modular collection of personal utility functions that I use all the time.
Written in Typescript with TypeDoc documents generator, highly minifiable when bundled, and has no external dependencies.

A wise billionaire once said: whenever you encounter a (...func) => {tion} that's called more than twice, you should "let that sink in" - Musk le Elon abu Twitter et al...

To get started for node/npm shadow repo clone jutsu the npm branch in your existing project directory:

pnpm add -D github:omar-azmi/kitchensink_ts#npm

And now, import whatever the heck you like:

// import { antigravity } from "python@3.12"
import { setDotPath } from "jsr:@oazmi/kitchensink/dotkeypath"
import { pack } from "jsr:@oazmi/kitchensink/eightpack"
import { downloadBuffer } from "jsr:@oazmi/kitchensink/browser"
// or why not use a single import?
// import { setDotPath, pack, downloadBuffer } from "kitchensink"

const statement = { I: { am: { very: { stupidly: undefined } } } }
let bin_str = ""
setDotPath(statement, "I.am.very.stupidly", "defined")
if (statement.I.am.very.stupidly === "defined") bin_str += "kermit da leap of faith no jutsu"
downloadBuffer(pack("str", bin_str), "i am very smart.txt", "text/plain")
alert("plz download the virus text file")

The module and submodule docs are available at github-pages
for you to figure out the REST api yuaSerufu.
once your tradesecretâ„¢ functions are registered, stage the action transformation sequence, duel in the ancient egyptian era of merge conflicts, and finally Kermit neck rope - said Dumbledwarf calmly, knowing very well that MangoSoft was scheming to Copilot his consciousness into the copypasta realm of shadow purple.

Non-mandatory example

/** TODO */

Add Package

deno add @oazmi/kitchensink

Import symbol

import * as mod from "@oazmi/kitchensink";

Add Package

npx jsr add @oazmi/kitchensink

Import symbol

import * as mod from "@oazmi/kitchensink";

Add Package

yarn dlx jsr add @oazmi/kitchensink

Import symbol

import * as mod from "@oazmi/kitchensink";

Add Package

pnpm dlx jsr add @oazmi/kitchensink

Import symbol

import * as mod from "@oazmi/kitchensink";

Add Package

bunx jsr add @oazmi/kitchensink

Import symbol

import * as mod from "@oazmi/kitchensink";