Cron Schedule Parser And Next Run
Parse five-field cron expressions with ranges, steps, lists and names, then compute the next matching UTC minute.
Page 48 of 50
Parse five-field cron expressions with ranges, steps, lists and names, then compute the next matching UTC minute.
Assemble a Content-Security-Policy header from safe defaults, merge custom directives and inject a per-request base64 nonce.
Issue HMAC-bound CSRF tokens and verify that the header, cookie and session agree before accepting a state change.
Escape CSV fields containing delimiters, quotes, line breaks or edge whitespace, doubling quotes and leaving simple values alone.
Detect directed cycles with three-color depth-first search, returning a concrete closed path for diagnostics or null for a DAG.
Parse data URLs into media type, parameters and bytes, handling percent-encoded and Base64 payloads plus decoded text.
Detect overlapping date ranges, compute their intersection duration, and merge touching or overlapping ranges.
Retry failed jobs up to a limit, then move them to an inspectable dead-letter queue with the error message and failure time.
Compare nested values by structure, including dates, regexes, unordered maps and sets, with cycle detection and no JSON serialization.
Clone nested plain data while removing fields at dot-separated paths, with forbidden-key guards against prototype pollution.
Expose resolve and reject controls for a promise and automatically reject with AbortError when the linked signal fires.
Schedule async jobs for future delivery with cancellable timers, early-clock rescheduling and pending inspection.
Compute weighted shortest paths from one source with a binary min-heap, reject negative edges and reconstruct the full node path.
Parse .env files with comments, export prefixes, quoted values, escapes and multiline strings without mutating process.env.
Implement a doubly linked list with O(1) push, unshift and known-node removal, iteration support and array conversion.
Parse compact durations such as 1h30m, 500ms or 2.5s into milliseconds with unit validation and clear syntax errors.
Poll an async predicate until it succeeds or times out, with abort support and the last error preserved as the cause.
Enable features for a stable percentage of users by hashing flag key and user ID into buckets, with allowlist overrides.
Limit requests per key with fixed windows, explicit costs, reset timestamps, retry hints and bounded state for many client keys.
Split Markdown frontmatter from the body and parse flat YAML scalars, with BOM handling and clear error messages.
Schedule retry delays with exponential backoff and full jitter, abortable sleeps and attempt validation to avoid synchronized retry storms.
Compile glob patterns with star, globstar, question marks, character classes and braces into anchored regular expressions.
Breadth-first search over adjacency maps that reconstructs the shortest unweighted path and reports distance or null when unreachable.
Cut tail latency by launching a second attempt after a delay, cancelling losing attempts and aggregating errors only when all fail.
Derive AES-GCM keys or raw bytes from a shared secret with HKDF-SHA-256, an explicit salt and context-specific info strings.
Classify HTTP methods as safe, idempotent and cacheable by default, and decide whether a failed request may be retried.
Parse single and multi-range byte requests, merge overlaps, and distinguish invalid syntax from unsatisfiable ranges for 206 or 416 responses.
Normalize and validate international bank account numbers using country lengths and the ISO 7064 mod-97 checksum.
Deduplicate retried mutations by idempotency key, share in-flight work, replay stored results and reject key reuse with different payloads.
A generic binary min-heap that tracks element positions by key, enabling O(log n) decrease-key updates, insertion and extraction.
Convert IPv4 addresses to integers and test membership in CIDR blocks for allowlists, proxies and rate limits.
Score string similarity with matching windows, transpositions and a common-prefix boost for fuzzy name matching.
Serialize JSON with sorted keys, strict numeric checks and cycle rejection so independent services compute identical signing payloads.
Generate RFC 6902 add, remove and replace operations from two JSON values, then apply them safely with JSON Pointer escaping.
Serialize asynchronous work per string key while allowing different keys to run concurrently, with idle lock cleanup.
Build the KMP prefix table and report every overlapping match index in linear time, including empty-pattern and Unicode code unit behavior.
Cancel the previous in-flight request when a newer one starts and discard stale results using sequence checks and AbortSignal.
Build a least-frequently-used cache with constant-time get and put using frequency buckets and doubly linked lists.
Fit a least-squares line to x/y points and return slope, intercept, R-squared and a prediction function with validation.
Parse Link headers into URLs, relation arrays and typed parameters, handling quoted commas, relative references and multiple links.
Find the longest strictly increasing subsequence in O(n log n) and return its length, values and original indices.
Split an integer cent total across weighted shares with the largest remainder method so every cent is assigned exactly once.
Calculate a simple moving average over a fixed window with a rolling sum, validating window size and numeric values.
Build multipart/form-data request bodies with custom boundaries, text fields and binary file parts without a browser.
Remember missing lookup results for a short TTL to avoid repeated expensive calls while distinguishing hits from misses.
Build RFC 8288 Link headers for paginated APIs with self, first, previous, next and last relations and validated page bounds.
Compute percentiles and quantiles with linear interpolation on a copied sorted array, validating bounds and numeric input.
Run async tasks by priority with bounded concurrency, unique ids and age-based promotion so low-priority work still completes.
Coordinate async readers and writers with a writer-preferring lock that releases exactly once and exposes waiter counts.
Validate post-login redirect targets against allowed hosts and protocols to block open redirect and credential tricks.
Round finite numbers to a bounded number of decimal places using exponent shifting, then format with fixed digits.
Match Express-style route patterns and infer parameter names as a TypeScript union, including named wildcards and percent decoding.
Parse untrusted JSON without exceptions by returning a discriminated Result, with an optional type-predicate validation layer.
Make untrusted upload names safe by stripping paths, control characters, reserved names and dangerous extensions.
Hash passwords with scrypt, a random salt and explicit cost parameters, then verify them with a timing-safe comparison.
Produce reproducible pseudo-random numbers with Mulberry32, plus integer range and array pick helpers for deterministic fixtures.
Answer range sum queries and point updates in logarithmic time with an array-backed segment tree and strict bounds validation.
Parse semantic versions and compare major, minor, patch, and prerelease identifiers according to SemVer precedence rules.
Parse semantic versions and test ranges with comparators, caret, tilde, wildcards, hyphen ranges and OR unions.
Hash strings or byte arrays with SHA-256 through Web Crypto and return lowercase hexadecimal suitable for integrity checks.
Enforce per-key request limits over a sliding time window with cost support, retry hints, remaining quota, and expired-entry cleanup.
Quote table and column identifiers for PostgreSQL or MySQL, doubling embedded quote characters and rejecting invalid names.
Turn V8 stack strings into structured frames with function names, file paths, line and column numbers, async and native markers.
Serve fresh entries instantly, return stale values while one background refresh runs, and surface refresh failures without breaking reads.
Compute population or sample standard deviation over validated numbers, with clear errors for insufficient sample sizes.
Use native structuredClone when available and fall back to a cycle-safe deep clone covering dates, regexes, maps, sets and typed arrays.
Define named, typed test cases with duplicate-name checks and run them against an executor, returning pass counts and failures.
Schedule delayed async tasks with priorities, bounded concurrency, cancellation, error isolation, and a drain method that waits for completion.
Order dependency graphs with Kahn's algorithm, deterministic tie-breaking, unknown-dependency checks, and clear cycle detection.
Generate and verify time-based one-time passwords from base32 secrets, with configurable digits, period and HMAC algorithm.
A generic Map with per-entry time to live, lazy expiration on reads, manual sweeping, expiry callbacks and bounded insertion-order eviction.
Parse URL query strings into typed values with reusable string, integer, boolean, list, and enum decoders plus aggregated errors.
Model finite states with typed events, guarded transitions, transition history and clear errors for illegal or rejected moves.
Implement a generic union-find structure with path compression, union by rank, component sizes, and grouped member enumeration.
Split byte chunks into decoded text lines with a TransformStream, enforce a line-size ceiling and collect results type-safely.
Sign and verify webhook payloads with HMAC-SHA256, timestamp tolerance and constant-time comparison to block replay attacks.
Distribute selections across weighted nodes with the smooth weighted round-robin algorithm, keeping interleaving fair without randomness.
Run CPU-bound jobs on a fixed pool of Node worker threads with a task queue, timeouts, crash recovery, and clean shutdown.
Parse WWW-Authenticate challenges and quoted auth parameters, including multiple challenges in one header.
A bounded async queue that applies backpressure to producers when full and drains to consumers without dropping or duplicating items.
A cancellable task runner that stops starting new work on abort and always runs registered cleanup, even when a task throws mid-flight.
A debounce utility that collapses rapid calls into one trailing invocation with flush and cancel support for deterministic tests.
A structural deep clone that handles cycles and shared references without infinite recursion, preserving Maps, Sets, Dates and typed arrays.
A controllable clock that makes timer dependent logic testable without real waiting, and drives pending callbacks in exact order.
A resilient fetch wrapper that retries failed requests with exponential backoff and a jittered cap for unreliable networks.
A shutdown coordinator that stops accepting work, waits for in-flight tasks to settle, and force-cancels whatever remains after a deadline.
An incremental JSON Lines reader that yields parsed records line by line with strict validation and clear errors for malformed input.
A retry policy that stops when the total deadline is reached instead of retrying a fixed count, returning the last error and the attempt log.
A config loader that keeps secret values out of committed files by resolving them from the environment and refusing to read them from disk.
A structured log scrubber that masks known secret keys and bearer tokens before serialization, without mutating the original object.
A counting semaphore that bounds in-flight async tasks with FIFO fairness and a safe release path for pooled resources.
A token bucket limiter that refills at a steady rate, allows bursts up to capacity, and reports allow and deny decisions with a deterministic clock.
A record transformer that keeps row indices and source values in every error, so a failing batch traces back to the exact offending record.
An argument parser that reads flags from the command line and environment with declared precedence, reporting which source supplied each value.
A test sandbox that creates a private temporary directory tree, exposes path helpers, and removes everything even when assertions fail.
A staged data pipeline that runs named stages in order, stops at the first failure, and reports which stage and record index broke.
An atomic file writer that stages to a temporary file in the same directory, fsyncs, and renames so readers never observe partial content.
A chunked file reader that streams a file in bounded memory, handles partial multibyte characters, and reports exact bytes consumed.
An idempotency key store that replays the recorded response for duplicate keys and rejects reuse with a different payload.
A typed retry decorator that retries only transient failures, caps exponential backoff and adds jitter to avoid thundering herds.