type-fest
A collection of essential TypeScript types
Found 8114 results for util
A collection of essential TypeScript types
Lodash modular utilities.
User-friendly glob matching
A comprehensive library for mime-type mapping
Node.js path.parse() ponyfill
Strip comments from JSON. Lets you use comments in your JSON files!
The `util.is*` functions introduced in Node v0.12.
Extend an object with the properties of additional objects. node.js/javascript util.
The Node.js `util.deprecate()` function with browser support
merge() utility function
The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s
Node.js's util module for all engines
CLI app helper
Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster
Detect whether or not an object is a Typed Array
Type check values
unist utility to recursively walk over nodes, with ancestral information
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
unist utility to visit nodes
mdast utility to get the plain text content of a node
A simple utility for conditionally joining classNames together
unist utility to serialize a node, position, or point as a human readable location
vfile utility to create a virtual message
unist utility to check if a node passes a test
Some useful utilities I often need
Lodash exported as ES modules.
JavaScript's functional programming helper library.
micromark utility with symbols
micromark utility with a couple of typescript types
mdast utility to parse markdown
Combines a list of arrays, returning a single array with unique values, using strict equality for comparisons.
micromark utility to encode dangerous html characters
mdast utility to transform to hast
micromark utility to handle character codes
micromark utility normalize identifiers (as found in references, definitions)
micromark utility to combine syntax or html extensions
mdast utility to serialize markdown
micromark utility to classify whether a character is whitespace or punctuation
micromark utility to decode numeric character references
micromark utility to tokenize subtokens
micromark utility to resolve subtokens
micromark utility with list of html tag names
micromark utility to decode markdown strings
micromark utility to splice and push with giant arrays
mdast utility to check if a node is phrasing content
Utils for working with JavaScript classes and prototype methods.
ECMAScript extensions and shims
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
A polyfill for the Resize Observer API
Polyfill/shim for util.promisify in node versions < v8
hast utility to create an element from a simple CSS selector
mdast utility to find and replace text in a tree
Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. No dependencies.
hast utility to create trees
Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.
Utilities for the snapdragon parser/compiler.
mdast extension to parse and serialize GFM strikethrough
mdast extension to parse and serialize GFM autolink literals
Cypress's fork of a simplified HTTP request client.
Node.js path.dirname() ponyfill
JavaScript utilities with respect to emerging standard
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 JSX
mdast extension to parse and serialize GFM footnotes
Utilities for working with Blob objects in the browser
mdast extension to parse and serialize MDX (or MDX.js) expressions
mdast extension to parse and serialize MDX.js ESM (import/exports)
mdast utility to find definition nodes in a tree
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)
unist utility to remove positions from a tree
Array-slice method. Slices `array` from the `start` index up to, but not including, the `end` index.
hast utility to transform to preact, react, solid, svelte, vue, etc
hast utility to transform from a `parse5` AST
hast utility to transform to a `parse5` AST
hast utility to reparse a tree
Common Utils For React Component
Returns `true` if the value is a primitive.
hast utility to check if a node is a (certain) element
Utilities for watching file trees.
Determine an app's root path from anywhere inside the app
hast utility to serialize to HTML
Like `extend` but only copies missing properties/values to the target object.
The modern build of lodash’s `_.isUndefined` as a module.
Deprecated. Utilities for ES3, most of which have been adopted or superseded in ES5.1. Adapted from Douglas Crockford's Remedial JavaScript
A node module to convert JSON to YAML
The modern build of lodash’s `_.isObject` as a module.
pvtsutils is a set of common utility functions used in various Peculiar Ventures TypeScript based projects.
Coalesce for JavaScript. Returns the first value that is not undefined or null.
unist utility to check if a node is generated
return whitelisted properties of an object
The lodash method `_.isNil` exported as a module.
Utility functions
esast (and estree) utility to visit nodes
the definitive JavaScript type testing library
unist utility to create a new trees with a nice syntax
hast utility to transform to estree (JavaScript AST) JSX
unist utility to get a position from an estree node
mdast extension to parse and serialize MDX (or MDX.js)
hast utility to get the plain-text value of a node
estree (and esast) utility to serialize to JavaScript
unist utility to find a node after another node
mdast extension to parse and serialize frontmatter (YAML, TOML, etc)
hast utility to parse from HTML
Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.
Utility functions
hast utility to get the plain-text value of a node according to the `innerText` algorithm
Minimal toolkit for building CLIs
hast utility to get the rank (or depth, level) of headings
unist utility to remove nodes from a tree
Simplified HTTP request client.
hast utility to check if a node has a property
Get the last or last n elements in an array.
Function argument validation for humans
The modern build of lodash’s `_.restParam` as a module.
estree (and esast) utility to parse from JavaScript
Faster alternative to javascript's native filter method.
mdast extension to parse and serialize math
unist utility to find nodes after another node
hast utility to sanitize nodes
nlcst utility to transform a tree to a string
mdast extension to parse and serialize generic directives (`:cite[smith04]`)
esast utility to transform from estree
mdast utility to remove empty paragraphs from a tree
unist utility to modify direct children of a parent
unist utility to visit direct children of a parent
Sort the keys in an object.
hast utility to create a tree from the DOM
Get all but the last element or last n elements of an array.
A node port of python's os.walk
hast utility that turns HTML into a syntax tree (while being small in browsers)
Lightweight format utility for the browser, based on util.format().
String formatting inspired by Python's str.format()
Utilities for watching file trees.
unist utility to create a new tree with nodes that pass a filter
vfile utility to create a report for a file
mdast utility to make a tree compact
Similar to String#trim() but removes only newlines
hast utility for `querySelector`, `querySelectorAll`, and `matches`
vfile utility to count messages per category: failures, warnings, etc
vfile utility to sort messages by line/column
A utility library for JavaScript and Typescript.
<h1 align="center">@antv/util</h1>
Require Node module and immediately remove it from module cache to force loading again next time
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
hast utility to check if a node is an embedded element
Detect native Symbol support.
Test if a value is a string.
Insert supplied variable values into a format string.
Return a normal number `y` and exponent `exp` satisfying `x = y * 2^exp`.
Escape a regular expression string or pattern.
Test if a value is a boolean.
Test if a value is a function.
Fast, prototype-friendly multimethods.
Test if a value is a Float64Array.
Detect native Uint32Array support.
Test if a value is a Uint32Array.
Detect native Symbol.toStringTag support.
Test if an object has a specified property.
Define (or modify) an object property.
Determine the specification defined classification of an object.
Test if a value is an array.
Determine the name of a value's constructor.
Convert between POSIX and Windows paths.
Get a property from an object using dot (object path) notation.
Test if a value is object-like.
Replace search occurrences with a replacement string.
Determine a value's type.
Return the current working directory.
hast utility to check if a link element is “Body OK”
Detect native Float32Array support.
Detect native Float64Array support.
Test if a value is a Uint8Array.
Detect native Uint16Array support.
Test if a value is a Uint16Array.
Read data from stdin.
Get a chunk of an array based on the total number of chunks and current index
Utilities shared across projects of Sanity
Platform byte order.
Return the global object.
Function which does nothing.
Create a regular expression from a regular expression string.
Test if a value is a regular expression.
Split a double-precision floating-point number into a higher order word and a lower order word.
Check if an environment is big endian.
Convert a double-precision floating-point number to the nearest single-precision floating-point number.
Platform float word order.
Check if an environment is little endian.
Test if a double-precision floating-point numeric value is infinite.
Detect native Buffer support.
Test if a double-precision floating-point numeric value is NaN.
Define a non-enumerable read-only property.
Fancy duck typing for the most serious of ducks.
Detect native Uint8Array support.
Tokenize a string into an array of string parts and format identifier objects.
Return an integer corresponding to the unbiased exponent of a double-precision floating-point number.
Command-line interface.
Add a callback to the next tick queue.
Return the prototype of a provided object.
Test if a value is an object.
Test if a value is a regular expression string.
Test if a value is a Float32Array.
Test if a value is a number.
mdast utility to generate a table of contents from a tree
The modern build of lodash’s `_.identity` as a module.
Return an unsigned 32-bit integer corresponding to the more significant 32 bits of a double-precision floating-point number.
hast utility to get the plain-text value of a node
Convert a string to lowercase.
A common util collection for antv projects
Generate string from a token array by interpolating values.
Create a double-precision floating-point number from a higher order word and a lower order word.
Test if a value is a Buffer object.
Test if a value is a plain object.
🛵 The stylish Node.js middleware engine for AWS Lambda (util package)
A common util collection for antv projects
Vue.js util for intelligently merging data passed to functional components.
The modern build of lodash’s `_.last` as a module.
Tiny wrapper around ansi-colors to add colored symbols and a timestamp.
vfile utility to parse the YAML front matter in a file
Create SecretLintRawSource from content.
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)
The modern build of lodash’s `_.support` as a module.
mdast utility to parse a comment marker
A collection of useful utilities.
The modern build of lodash’s `_.pairs` as a module.
Javascript string formatter for human readability
MongoDB query language for in-memory objects
URL Safe Base64 encoding
The lodash method `_.fromPairs` exported as a module.
unist utility to select nodes with CSS-like selectors
Return a copy of the object only containing the whitelisted properties.
Flatten a nested array.
A minimal dom utility toolbelt
Sync and async rm -r.
utilitie collection for visjs
A comprehensive library for mime-type mapping (with browserify support)
Common Utils For React Component
Type checking from node core
Everything you need for compressing and uncompressing
unist utility to create a new tree by mapping all nodes
hast utility to find and replace text in a tree
A common util collection for antv projects
mdast utility to transform to nlcst
mdast utility to get the style of a heading