npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@oazmi/kitchensink

v0.8.5

Published

a collection of personal utility functions

Downloads

1,019

Readme

@oazmi/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...

Installation

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 "[email protected]"
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 "jsr:@oazmi/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 submodule docs are available on github-pages, for you to figure out the REST api yourself.

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 ~~shadow~~ purple realm.

Non-mandatory example

/** TODO: someday, somewhere, sometime, somehow, something, sound, shall be around */

Compatibility

Works with: Deno 1, Deno 2, Browsers, Node >= 18, Cloudflare Workers, Bun? (it's too ugly for consideration; for the longest time, it didn't even work on windows)

Dino Specimen

deno2 Specimen A: I just needed an excuse to put this up.