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