hast-util-sanitize
hast utility to sanitize nodes
Found 10897 results for utility hooks
hast utility to sanitize nodes
hast utility to create a tree from the DOM
Function argument validation for humans
Get all but the last element or last n elements of an array.
esast utility to transform from estree
unist utility to modify direct children of a parent
mdast extension to parse and serialize math
unist utility to find nodes after another node
mdast utility to remove empty paragraphs from a tree
Takes a string, such as "1,2,3-10,5-8" and turns it into an array of numbers
mdast extension to parse and serialize generic directives (`:cite[smith04]`)
React utility to merge refs.
unist utility to visit direct children of a parent
Small, performant & immutable iteration utilities for Arrays and Objects
Utility data structure used in discord.js
Utilities for watching file trees.
hast utility that turns HTML into a syntax tree (while being small in browsers)
hast utility for `querySelector`, `querySelectorAll`, and `matches`
vfile utility to create a report for a file
unist utility to create a new tree with nodes that pass a filter
vfile utility to count messages per category: failures, warnings, etc
mdast utility to make a tree compact
hast utility to check if a node is an embedded element
A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data.
Similar to String#trim() but removes only newlines
vfile utility to sort messages by line/column
A utility library for JavaScript and Typescript.
Require Node module and immediately remove it from module cache to force loading again next time
hast utility to check if a node is phrasing content
hast utility to check if a link element is “Body OK”
Ethereum RPC and Provider errors.
vfile utility to read and write to the file system
Determine the specification defined classification of an object.
Ethereum RPC and Provider errors
unist utility to inspect nodes
Determine a value's type.
Test if a value is a Uint8Array.
Test if a value is a Uint16Array.
Return a normal number `y` and exponent `exp` satisfying `x = y * 2^exp`.
Detect native Float64Array support.
Detect native Uint16Array support.
Detect native Symbol support.
Function which does nothing.
Detect native Symbol.toStringTag support.
Test if an object has a specified property.
Define (or modify) an object property.
Platform float word order.
Check if an environment is little endian.
hast utility to get the plain-text value of a node
Escape a regular expression string or pattern.
Test if a value is a boolean.
Test if a value is a string.
Insert supplied variable values into a format string.
Generate string from a token array by interpolating values.
Replace search occurrences with a replacement string.
Return the current working directory.
Test if a value is an array.
Test if a value is a function.
Detect native Float32Array support.
Test if a value is object-like.
Return the global object.
Test if a value is a Uint32Array.
Test if a value is a regular expression.
Test if a value is a Float64Array.
Convert a double-precision floating-point number to the nearest single-precision floating-point number.
Determine the name of a value's constructor.
Test if a double-precision floating-point numeric value is NaN.
Get a property from an object using dot (object path) notation.
Test if a value is a Buffer object.
Detect native Uint32Array support.
Convert between POSIX and Windows paths.
Define a non-enumerable read-only property.
Test if a value is a plain object.
Detect native Uint8Array support.
Detect native Buffer support.
Return the prototype of a provided object.
Platform byte order.
Tokenize a string into an array of string parts and format identifier objects.
Split a double-precision floating-point number into a higher order word and a lower order word.
Add a callback to the next tick queue.
Check if an environment is big endian.
Test if a double-precision floating-point numeric value is infinite.
Return an integer corresponding to the unbiased exponent of a double-precision floating-point number.
Return an unsigned 32-bit integer corresponding to the more significant 32 bits of a double-precision floating-point number.
Test if a value is an object.
Create a regular expression from a regular expression string.
Test if a value is a Float32Array.
Test if a value is a number.
Read data from stdin.
Convert a string to lowercase.
Test if a value is a regular expression string.
Command-line interface.
UI utilities
mdast utility to generate a table of contents from a tree
Convenience wrapper for Got to interact with the GitHub API
Create a double-precision floating-point number from a higher order word and a lower order word.
(IEC) Utility to parse a string bytes to bytes and vice-versa
vfile utility to parse the YAML front matter in a file
A collection of useful utilities.
Tiny wrapper around ansi-colors to add colored symbols and a timestamp.
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
A React hook for managing cookies with no dependencies.
<!-- This file is AUTO-GENERATED, edit _README.template.md or tweak scripts/generateDocs.ts -->
Escape regular expression special characters
Flattens React children and fragments to an array with predictable and stable keys
mdast utility to parse a comment marker
unist utility to select nodes with CSS-like selectors
Minimum utility toolbelt
Return a copy of the object only containing the whitelisted properties.
A minimal dom utility toolbelt
Merge two lists, trying to preserve the order of both
A crawling file watcher.
Flatten a nested array.
Transform deprecated styling attributes on HAST table cells to inline styles
Get unique values of an array. Really, like deeply unique.
Utility to make vitest tests fail when console.error() or console.warn() are used
Ultra tiny, opinionated, positioning engine.
[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]
Cross-browser type assertions (less broken typeof)
unist utility to create a new tree by mapping all nodes
mdast utility to get the style of a heading
mdast utility to transform to nlcst
🔧 Fast, modern, and practical utility library for FP in TypeScript.
A unique JavaScript library for Discord bots with modern features and extensibility.
hast utility to find and replace text in a tree
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
Simple function that return the first non null or undefined argument
Various utility functions
Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.
Convert react components to plain text without any HTML markup
hast utility to merge class names together
Convert Errors & Objects into an easily-serialized vanilla Object.
here-document on node.js
less broken typeof
Returns a shallow copy of an object without blacklisted properties
Convert Gitignore to Glob patterns
Get the prototype chain of any value as an Array
Gets you the Cypress test command log as JSON on failure
Map or loop through promises, promise-returning or async functions, serially or in parallel, based on Promise.all! Has a hooks system: start, beforeEach, afterEach, finish.
Blazing fast, tree-shakeable, type-safe, modern utility library to sort any type of array in less than 1 KB!
Easy way to mock process.env during BDD testing
Simplified, lightweight HTTP client library
[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im
A code formatter for Lua
A collection of decorators using lodash at it's core.
- [`useDebounce`](./docs/useDebounce.md) — 用来处理防抖值的 Hook。 - [`useDebouncedCallback`](./docs/useDebouncedCallback.md) — 用来处理防抖函数的 Hook。 - [`useImmer`](./docs/useImmer.md) — 用来处理不可变状态的 Hook。 - [`useShallow`](./docs/useShallow.md) — 用
Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged
unist utility to find a node
es-escape-html rewrite for ESM
TOAST UI Utility: CodeSnippet
Format an error message for production.
React utility to flatten fragments.
Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.
Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.
Test if a finite double-precision floating-point number is an integer.
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
hast utility to transform to the DOM
hast utility to check if a node is a conditional comment
Returns `true` if the given string or array starts with prefix using strict equality for comparisons. Using fastest implementation.
A library of Javascript utility functions with an emphasis on Functional Programming.
Replace search occurrences with a replacement string.
Test if a finite numeric value is an odd number.
Exotic components, hooks and functions that you wouldn't find in the usual react component library.
Simplified HTTP request client.
Convert a string to lowercase.
Simple merge utility to extend objects without extra dependencies
Modular utility hooks that we often use grouped in one package. Written in TypeScript, documented, tested and maintained.Disclaimer: at least React 16 is needed (the one with hooks ;) )
React Native flashbar and top notification alert utility
A Javascript utility library for working with native objects.
Core module for the Sugar Javascript utility library.
A collection of custom React hooks designed to handle advanced use cases, from managing asynchronous operations and state persistence to handling media queries and WebSocket connections. Each hook is designed for simplicity, efficiency, and ease of integr
vfile utility to find one or more files by searching the file system upwards
vandium common utility functions
Test if a finite numeric value is an even number.
puppeteer + dom-testing-library
TypeScript common pattern shortcut definitions / utility gist library
Check if the package is being installed by another package
nlcst utility to check whether a node is meant literally
Check if a value is undefined or not.
Set the more significant 32 bits of a double-precision floating-point number.
Test if a double-precision floating-point numeric value is positive zero.
A collection of serverless framework utilities
Test if a value is a number having a nonnegative integer value.
Utility to find webpack settings in react-scripts and other situations
Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI
Test if a value is NaN.
Test if a value is a number having an integer value.
Constant function.
Utility hooks, functions and constants
The utility package for @azure/msal-react.
A lightweight Node.js library to fetch the file size from a remote URL without downloading the file. Zero dependencies. Returns a Promise with the file size formatted as 'B', 'KB', 'MB', 'GB', or 'TB'.
Returns `true` if a value exists in the given string, array or object.
A modern tooling library for asynchronous operations using async/await, promises and async generators
Utils for normalizing and formatting repo data.
qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.
A VitePress auto sidebar plugin that automatically creates a simple configuration.
Given an object returns list of all possible paths to its properties
Detect native Uint8ClampedArray support.
Set the less significant 32 bits of a double-precision floating-point number.
Assert utility from yeoman
Test if a value is a collection.
Convert an unsigned 32-bit integer to a signed 32-bit integer.
Returns the first index at which a given element can be found.
Create a new object filtered to have only properties for which the callback returns true.
Query for the status of any game server in Node.JS
Parses a regular expression string and returns a new regular expression.
nlcst utility to normalize a word for easier comparison
Validate, sanitize and document JSON schemas
A NodeCG utility that exposes a set of Replicants, Messages, and other hooks for interacting with OBS via obs-websocket
Return an unsigned 32-bit integer corresponding to the less significant 32 bits of a double-precision floating-point number.
Copy an error object.
Test if a value is an Int32Array.
Test if a value is a Uint8ClampedArray.
Test if a value is an Int8Array.
Detect native Int8Array support.
Test if a double-precision floating-point numeric value is negative zero.
Test if a value is an Int16Array.
nlcst utility to search for patterns in a tree
Detect native Int16Array support.
Detect native Int32Array support.
Test if a value is an arguments object.
hast utility to transform to nlcst
Test if an object's own property is enumerable.
Test if a value is an Error object.
Return an array of an object's own enumerable property names.
Return the first index at which a given element can be found.
Match substrings on the left or right of a given index, ignoring whitespace
unist utility to find nodes before another node
TypeScript utilities for exception handling and errors-as-values.
A Typescript-First utility library inspired by Lodash. Optimized for modern browsers.
walk directory for esm and cjs modules
Minify email templates
Essential utilities for TypeScript projects
Detect native generator function support.
Return a property descriptor for an object's own property.
A React utility for responsive scaling of styled-components with viewport-based size hooks.
Collection of utilities for FusionCharts
Utilities for working with common protobuf types
Alias for eval global.
Minimal JavaScript type checking library
Define a non-enumerable read-only accessor.
Define a read-only property.
Auto-import components in Astro projects
Return an unsigned 32-bit integer corresponding to the IEEE 754 binary representation of a single-precision floating-point number.
A collection of React hooks for integration with the @psionic/emit library.
Return an array of an object's own enumerable and non-enumerable property names.
Test if a value is a number having a positive integer value.