toolmetry
v1.0.7
Published
A comprehensive developer tools library — Base64, URL encoding, hashing, JWT, UUID, AES-256 encryption, random generation, color conversion, HTML entities, number base, text utilities, JSON, password generator, Morse code, Roman numerals, cron validator,
Downloads
136
Maintainers
Keywords
Readme
Toolmetry
Toolmetry is a lightweight, zero-dependency utility library for JavaScript and TypeScript, providing fast and reusable helper functions for Node.js and browser applications.
🚀 Installation
npm install toolmetry📚 Usage
// CommonJS
const toolmetry = require('toolmetry');
// ES Modules
import toolmetry from 'toolmetry';
// Named imports
import { base64Encode, uuidV4, aesEncrypt } from 'toolmetry';✨ Features
- Zero dependencies
- ESM and CJS support
- TypeScript support
- Tree-shakeable
- Browser and Node.js compatible
- Secure crypto utilities
📦 Modules
| Category | Modules | | --------------- | ------------------------------ | | Data & Encoding | base64, url, htmlEntity, json | | Security | hash, encrypt, jwt, password | | Generators | uuid, random, lorem | | Utilities | text, color, cron, roman, diff |
💡 Examples
Encryption
import { aesEncrypt, aesDecrypt, hashGenerate } from 'toolmetry';
aesEncrypt('data', 'key');
hashGenerate('hello', 'sha256');UUID & Random
import { uuidV4, randomString } from 'toolmetry';
uuidV4();
randomString(12);Text Utilities
import { toCamelCase, slugify } from 'toolmetry';
toCamelCase('hello world');
slugify('hello world');📖 Documentation
🔗 Links
- npm: https://www.npmjs.com/package/toolmetry
- GitHub: https://github.com/toolmetryai/toolmetry-npm
- Website: https://toolmetry.pro
📄 License
MIT © Toolmetry
