type-fest
A collection of essential TypeScript types
Found 12403 results for utility
A collection of essential TypeScript types
prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
Higher-order functions and common patterns for asynchronous code
Utility to parse a string bytes to bytes and vice-versa
HTTP and HTTPS modules that follow redirects.
Escape string for use in HTML
User-friendly glob matching
Extend an object with the properties of additional objects. node.js/javascript util.
ES2019 spec-compliant String.prototype.trimStart shim.
ES2019 spec-compliant String.prototype.trimEnd shim.
Type check values
unist utility to serialize a node, position, or point as a human readable location
unist utility to recursively walk over nodes, with ancestral information
unist utility to check if a node passes a test
micromark utility with symbols
Bindings for the Watchman file watching service
mdast utility to get the plain text content of a node
micromark utility with a couple of typescript types
CLI app helper
unist utility to visit nodes
Utility for normalizing a numeric range, with a wrapping function useful for polar coordinates
micromark utility to handle character codes
mdast utility to parse markdown
micromark utility to splice and push with giant arrays
A small utility for creating warnings and emitting them.
vfile utility to create a virtual message
micromark utility to resolve subtokens
micromark utility to classify whether a character is whitespace or punctuation
micromark utility to decode markdown strings
mdast utility to transform to hast
mdast utility to serialize markdown
micromark utility to encode dangerous html characters
unist utility to get the position of a node
micromark utility to sanitize urls
hast utility to check if a node is inter-element whitespace
micromark utility normalize identifiers (as found in references, definitions)
mdast utility to check if a node is phrasing content
micromark utility to combine syntax or html extensions
micromark utility with list of html tag names
micromark utility to decode numeric character references
Lazy-evaluating list of files, based on globs or regex patterns
micromark utility to tokenize subtokens
A simple utility for conditionally joining classNames together
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
mdast extension to parse and serialize MDX.js ESM (import/exports)
mdast extension to parse and serialize MDX (or MDX.js) expressions
mdast utility to find and replace text in a tree
mdast extension to parse and serialize GFM strikethrough
hast utility to transform to preact, react, solid, svelte, vue, etc
hast utility to create trees
mdast extension to parse and serialize MDX or MDX.js JSX
hast utility to create an element from a simple CSS selector
mdast extension to parse and serialize GFM tables
mdast extension to parse and serialize GFM task list items
mdast extension to parse and serialize GFM (GitHub Flavored Markdown)
mdast extension to parse and serialize GFM autolink literals
mdast extension to parse and serialize GFM footnotes
Combines a list of arrays, returning a single array with unique values, using strict equality for comparisons.
vfile utility to convert between positional (line and column-based) and offset (range-based) locations
hast utility to transform from a `parse5` AST
hast utility to reparse a tree
hast utility to serialize to HTML
hast utility to transform to a `parse5` AST
hast utility to check if a node is a (certain) element
Escape a string for use in HTML or the inverse
unist utility to remove positions from a tree
unist utility to find a node after another node
mdast utility to find definition nodes in a tree
easy to use progress-bar for command-line/terminal applications
Cypress's fork of a simplified HTTP request client.
hast utility to parse from HTML
Utility Types Collection for TypeScript
Correctly declare progressive enhancements for CSS Custom Properties.
hast utility to get the plain-text value of a node according to the `innerText` algorithm
A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.
esast (and estree) utility to visit nodes
A fast 642B utility that makes reading multipart responses simple
unist utility to get a position from an estree node
mdast extension to parse and serialize MDX (or MDX.js)
Determine an app's root path from anywhere inside the app
A utility library for JavaScript and Typescript.
hast utility to sanitize nodes
hast utility to transform to estree (JavaScript AST) JSX
hast utility to get the plain-text value of a node
hast utility to create a tree from the DOM
estree (and esast) utility to serialize to JavaScript
mdast extension to parse and serialize math
mdast extension to parse and serialize frontmatter (YAML, TOML, etc)
unist utility to check if a node is generated
Common utility functions for oas-kit
esast utility to transform from estree
estree (and esast) utility to parse from JavaScript
hast utility that turns HTML into a syntax tree (while being small in browsers)
return whitelisted properties of an object
Utilities for watching file trees.
unist utility to create a new trees with a nice syntax
hast utility to check if a node has a property
Lightweight and faster alternative to Ramda with included TS definitions
nlcst utility to transform a tree to a string
mdast extension to parse and serialize generic directives (`:cite[smith04]`)
unist utility to visit direct children of a parent
Function argument validation for humans
unist utility to modify direct children of a parent
Coalesce for JavaScript. Returns the first value that is not undefined or null.
Type assertions aka less-broken `typeof`
unist utility to remove nodes from a tree
hast utility to get the rank (or depth, level) of headings
Simplified HTTP request client.
hast utility for `querySelector`, `querySelectorAll`, and `matches`
Takes a string, such as "1,2,3-10,5-8" and turns it into an array of numbers
Starts server, waits for URL, then runs test command; when the tests end, shuts down server
hast utility to check if a node is phrasing content
hast utility to check if a node is an embedded element
A cross platform Promise.allSettled polyfill
React utility to merge refs.
unist utility to create a new tree with nodes that pass a filter
hast utility to check if a link element is “Body OK”
hast utility to get the plain-text value of a node
Prototype inheritance utility
Utility data structure used in discord.js
function binding utility
Ethereum RPC and Provider errors
Get the last or last n elements in an array.
Get all but the last element or last n elements of an array.
Simple help and sanity checks for Node CLI bin scripts
vfile utility to create a report for a file
vfile utility to count messages per category: failures, warnings, etc
unist utility to find nodes after another node
vfile utility to sort messages by line/column
A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data.
mdast utility to remove empty paragraphs from a tree
Small, performant & immutable iteration utilities for Arrays and Objects
Utilities for watching file trees.
vfile utility to read and write to the file system
Determine the specification defined classification of an object.
Return the global object.
Detect native Symbol support.
mdast utility to make a tree compact
Test if a value is a string.
vfile utility to parse the YAML front matter in a file
Test if a value is a regular expression.
unist utility to inspect nodes
Define a non-enumerable read-only property.
Determine a value's type.
Escape a regular expression string or pattern.
Test if a value is a boolean.
Test if a value is a function.
Test if a value is object-like.
Convert a double-precision floating-point number to the nearest single-precision floating-point number.
Detect native Float64Array support.
Insert supplied variable values into a format string.
Test if a double-precision floating-point numeric value is NaN.
(IEC) Utility to parse a string bytes to bytes and vice-versa
Return the prototype of a provided object.
Test if a value is an object.
Test if a value is a Uint16Array.
Detect native Uint16Array support.
Detect native Uint8Array support.
Test if a value is a Uint8Array.
Test if a value is a Float64Array.
Tokenize a string into an array of string parts and format identifier objects.
Platform float word order.
Check if an environment is little endian.
Return a normal number `y` and exponent `exp` satisfying `x = y * 2^exp`.
Detect native Uint32Array support.
Test if a value is a Uint32Array.
Test if a value is a Float32Array.
Test if a value is a number.
Split a double-precision floating-point number into a higher order word and a lower order word.
Check if an environment is big endian.
Detect native Symbol.toStringTag support.
Define (or modify) an object property.
Test if a value is an array.
Determine the name of a value's constructor.
Test if an object has a specified property.
Test if a value is a Buffer object.
Test if a double-precision floating-point numeric value is infinite.
Require Node module and immediately remove it from module cache to force loading again next time
Convert between POSIX and Windows paths.
Return an unsigned 32-bit integer corresponding to the more significant 32 bits of a double-precision floating-point number.
Replace search occurrences with a replacement string.
Generate string from a token array by interpolating values.
Test if a value is a plain object.
Ethereum RPC and Provider errors.
Function which does nothing.
Return the current working directory.
Platform byte order.
Convenience wrapper for Got to interact with the GitHub API
Detect native Float32Array support.
Similar to String#trim() but removes only newlines
Create a double-precision floating-point number from a higher order word and a lower order word.
Convert a string to lowercase.
Test if a value is a regular expression string.
Read data from stdin.
Return an integer corresponding to the unbiased exponent of a double-precision floating-point number.
Create a regular expression from a regular expression string.
Detect native Buffer support.
<!-- This file is AUTO-GENERATED, edit _README.template.md or tweak scripts/generateDocs.ts -->
Command-line interface.
Add a callback to the next tick queue.
Minimum utility toolbelt
mdast extension to parse and serialize highlight mark
mdast utility to generate a table of contents from a tree
UI utilities
Get a property from an object using dot (object path) notation.
Simple CLDR traverser
A minimal dom utility toolbelt
Utility to make vitest tests fail when console.error() or console.warn() are used
A collection of useful utilities.
TypeScript 類型工具庫:提供豐富的類型操作工具和重新導出的內建類型 / TypeScript type utility library: provides rich type manipulation utilities and re-exported built-in types
unist utility to select nodes with CSS-like selectors
mdast utility to parse a comment marker
Flatten a nested array.
More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.
unist utility to create a new tree by mapping all nodes
Return a copy of the object only containing the whitelisted properties.
Ultra tiny, opinionated, positioning engine.
Flattens React children and fragments to an array with predictable and stable keys
Tiny wrapper around ansi-colors to add colored symbols and a timestamp.
Various utility functions
🔧 Fast, modern, and practical utility library for FP in TypeScript.
Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)
hast utility to find and replace text in a tree
hast utility to transform to the DOM
Transform deprecated styling attributes on HAST table cells to inline styles
mdast utility to get the style of a heading
Merge two lists, trying to preserve the order of both
A crawling file watcher.
Format an error message for production.
Simple merge utility to extend objects without extra dependencies
Test if a finite numeric value is an odd number.
hast utility to merge class names together
Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI
Replace search occurrences with a replacement string.
Cross-browser type assertions (less broken typeof)
Test if a finite double-precision floating-point number is an integer.
Convert a string to lowercase.
Test if a finite numeric value is an even number.
Convert Errors & Objects into an easily-serialized vanilla Object.
Set the more significant 32 bits of a double-precision floating-point number.
Return an unsigned 32-bit integer corresponding to the IEEE 754 binary representation of a single-precision floating-point number.
Get the prototype chain of any value as an Array
Set the less significant 32 bits of a double-precision floating-point number.
取得陣列唯一值,支援深度比較巢狀物件和陣列 / Get unique values from array with deep comparison for nested objects and arrays
unist utility to find a node
mdast utility to transform to nlcst
Escape regular expression special characters
Convert an unsigned 32-bit integer to a signed 32-bit integer.
Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.
Constant function.