Registry / ubelt
library1.4.2jsnpmunverified

A small utility belt library by Dominic Tarr providing common functional helpers (e.g., map, filter, reduce, pipe, compose) for Node.js and browsers. Current stable version 3.2.2, released infrequently as a maintenance package. Designed for small projects where lightweight dependencies are preferred. Key differentiator vs. Lodash/Ramda: minimal API surface, no dependencies, zero-config.

npm install ubelt
INSTALL
IMPORT
SIG · UBELT
U
ubelt
javascriptv1.4.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

map
import { map } from 'ubelt'
import map from 'ubelt'
Default export is an object with all functions; named exports are preferred.
pipe
const { pipe } = require('ubelt')
import { pipe } from 'ubelt'
Package uses CommonJS; ESM import requires a bundler that handles CJS interop.
ubelt
import ubelt from 'ubelt'
const ubelt = require('ubelt')
Default import is an object containing all utilities. Also works with require.

Demonstrates pipe, filter, and map functions to process an array.

import { map, filter, pipe } from 'ubelt'; const result = pipe( [1, 2, 3, 4], filter(x => x % 2 === 0), map(x => x * 2) ); console.log(result); // [4, 8]
Debug
Known issues
breakingIn v2, the package was renamed from 'dominictarr-ubelt' to 'ubelt'. Requires updating imports.
fix
Update package.json dependency to 'ubelt' and change import paths.
affects: >=1.0.0 <2.0.0
deprecatedSome functions like 'toAsync' have been removed as they were experimental.
fix
Replace with native Promise or async/await patterns.
affects: >=2.0.0
gotchaThe 'map' function does not support object iteration; only arrays.
fix
Use Object.keys/values/entries or a library like Lodash for objects.
affects: *
Errors
Common errors & fixes
Cannot find module 'ubelt'
Package not installed or incorrect version.
fix
Run 'npm install ubelt' to install the latest version.
TypeError: ubelt.map is not a function
Importing default export but trying to use named property incorrectly.
fix
Use named import: import { map } from 'ubelt'; or use default: const ubelt = require('ubelt'); then ubelt.map().
Upgrade
Version history
1.4.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ubelt — npm install ubelt · libregistry