Standard Library #

Strings
A complete guide to string manipulation in TypeScript — built-in String methods, text search and replacement, formatting, conversion, template literals, Unicode, and common string processing patterns in real applications.
I/O
A complete guide to I/O operations in TypeScript — reading and writing files with fs/promises, streams for large data, path manipulation, directory operations, stdin/stdout, and I/O error handling.
Math
A complete guide to mathematical operations in TypeScript — the built-in Math object, constants, rounding, trigonometry, random numbers, floating-point arithmetic, BigInt for large numbers, and calculation patterns in real applications.
Crypto
A complete guide to the crypto module in TypeScript — hashing with SHA and MD5, HMAC for integrity verification, symmetric AES encryption and decryption, generating secure tokens and UUIDs, and password hashing with scrypt and bcrypt.
URL
A complete guide to URL manipulation in TypeScript — parsing with the URL API, URLSearchParams, building and modifying URLs, validation, normalization, encoding, and common URL patterns in web apps and APIs.
Buffer
A complete guide to binary data manipulation with Buffer in TypeScript — creating and converting Buffers, hex and base64 encoding, reading and writing numeric data types, slice and concat operations, and common binary data processing patterns in Node.js applications.
Events
A complete guide to EventEmitter in TypeScript — creating and listening to events, typed events with interfaces, once and removeListener, error handling, the observer pattern, and event-driven architecture patterns in Node.js applications.
Timers
A complete guide to timers in TypeScript — setTimeout, setInterval, setImmediate, queueMicrotask, cancelling timers, debounce and throttle, precise scheduling, and timer patterns in Node.js applications.
Date & Time
A complete guide to date and time manipulation in TypeScript — the built-in Date object, parsing and formatting, date arithmetic, timezones, Intl.DateTimeFormat, and preparing to use the Temporal API.
About | Author | Content Scope | Editorial Policy | Privacy Policy | Disclaimer | Contact