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 🙏

© 2026 – Pkg Stats / Ryan Hefner

zerodep

v1.10.11

Published

Zero dependency utils for various environments.

Readme

zerodep

zerodep is a CommonJS collection of dependency-free utilities for shared JavaScript, browser, and Node.js environments. The package includes data and encoding functions, DOM helpers, filesystem operations, recursive loaders, an action dispatcher, and a command executor.

The documentation describes the implementation shipped by the selected package release. The project does not yet declare supported Node.js or browser versions, and it has no test suite. Treat behavior identified as defective or unverified accordingly.

Install

Install an exact version because the package changes frequently:

npm i -E zerodep

Entry points

The package currently has no working root entry point: package.json declares index.js, but that file does not exist. Import an explicit CommonJS subpath instead.

| Entry point | Responsibility | | --- | --- | | zerodep/js/fn | 84 environment-neutral utility exports | | zerodep/browser/fn | All common functions plus browser and DOM helpers | | zerodep/node/fn | All common functions plus password and legacy Base64 helpers | | zerodep/node/fs | Synchronous filesystem/path helpers, downloads, and watchers | | zerodep/node/load | Generic recursive directory loader | | zerodep/node/load/js | Recursive CommonJS-compatible module loader | | zerodep/node/load/json | Recursive JSON loader with key rewriting | | zerodep/node/load/json/prefixObjectProtoKeys | JSON reviver used by the JSON loader | | zerodep/node/access | Builds an object access point from nested modules | | zerodep/node/action | Immediately dispatches an action from command-line arguments | | zerodep/node/exec | Executes a shell command and resolves with its exit code |

const fn = require('zerodep/js/fn');

console.log(fn.uniqueArray([1, 1, 2]));
// [1, 2]
const nodeFn = require('zerodep/node/fn');
const fileSystem = require('zerodep/node/fs');

Some functions call sibling exports through this. Invoke those functions as methods of the imported namespace unless their reference explicitly says otherwise:

const fn = require('zerodep/js/fn');
const value = fn.clone(source, 'nested', 'key');

API reference

The references cover every current export. They describe observed source behavior rather than a compatibility guarantee. Functions may return different absence indicators (false, null, or undefined), mutate supplied values, log and suppress errors, or rely on host globals; consult each entry before use.

Operational safety

Several modules can execute commands, load code, download remote content, mutate the process working directory, overwrite or recursively remove files, and create symbolic links. Validate all paths, URLs, module trees, and command arguments before invoking them. Do not pass untrusted input to node/action, node/exec, recursive loaders, or mutating filesystem helpers.

Tests and compatibility

No tests or test scripts are currently tracked. The documented results were derived from source inspection, limited export enumeration, and direct confirmation of the missing root entry point and treeViewArray failure.

Supported Node.js releases and browser baselines are intentionally unspecified pending a project revision. The implementation uses features including CommonJS, BigInt, URL, TextEncoder, TextDecoder, fetch, replaceAll, DOM APIs, and Node.js built-ins; availability depends on the selected entry point and runtime.

Validate documentation coverage with:

npm run check:docs

Versioning

API stability and deprecation policy are not yet defined. The -E installation option records the resolved release as an exact dependency; review source and release changes before upgrading.

License

MIT