Everything you need to know about the toolmetry npm package. 18 modules, zero dependencies, full TypeScript.
// 1. Install
npm i toolmetry
// 2. Import
import { base64, url, hash, jwt, uuid, color, text, json, password, morse, roman, cron, diff, lorem, htmlEntity, numberBase, encrypt, random } from 'toolmetry';
// 3. Use
const encoded = base64.encode('Hello, World!');
const id = uuid.v4();
const rgb = color.hexToRgb('#3B82F6');
const camel = text.toCamelCase('hello world');
const pwd = password.generate({ length: 20 });npm i toolmetry
yarn add toolmetry
pnpm add toolmetry
bun add toolmetry
Click on any module to see its full API reference and interactive examples.
Encode and decode Base64 strings, with URL-safe and buffer support.
Encode and decode URL components, build and parse query strings effortlessly.
Generate hashes with MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC support.
Decode and inspect JWT tokens without verification. Check expiry and claims.
Generate unique UUIDs instantly with batch creation, validation, and version inspection.
AES-256-GCM encryption for secure messages with PBKDF2 key derivation.
Generate random strings, numbers, hex, alphanumeric, pick, shuffle, and more.
Convert between HEX, RGB, and HSL with lighten/darken helpers.
Encode and decode HTML entities for special characters, named, and numeric.
Convert between binary, octal, decimal, hex, and custom bases (2-36).
Case conversion, slugify, word/char counting, reverse, and more text utilities.
Format, minify, validate, flatten, and inspect JSON structures.
Generate secure random passwords with customizable options and strength checking.
Encode and decode Morse code with validation support.
Convert between Arabic numbers and Roman numerals with validation.
Validate and describe cron expressions with human-readable output.
Compare texts line by line and find differences.
Generate placeholder text for design and development.