array-last
Get the last or last n elements in an array.
Found 10880 results for utility
Get the last or last n elements in an array.
Function argument validation for humans
Simple help and sanity checks for Node CLI bin scripts
estree (and esast) utility to parse from JavaScript
Get all but the last element or last n elements of an array.
esast utility to transform from estree
hast utility to sanitize nodes
mdast utility to remove empty paragraphs from a tree
nlcst utility to transform a tree to a string
mdast extension to parse and serialize math
unist utility to find nodes after another node
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 modify direct children of a parent
hast utility to create a tree from the DOM
unist utility to visit direct children of a parent
Small, performant & immutable iteration utilities for Arrays and Objects
Utilities for watching file trees.
hast utility that turns HTML into a syntax tree (while being small in browsers)
Utility data structure used in discord.js
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
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
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”
hast utility to check if a node is phrasing content
unist utility to inspect nodes
vfile utility to read and write to the file system
Ethereum RPC and Provider errors.
Detect native Symbol support.
Test if a value is a string.
Ethereum RPC and Provider errors
Insert supplied variable values into a format string.
Escape a regular expression string or pattern.
Test if a value is a boolean.
Return a normal number `y` and exponent `exp` satisfying `x = y * 2^exp`.
Test if a value is a function.
Determine the specification defined classification of an object.
Test if a value is a Float64Array.
Detect native Uint32Array support.
Test if a value is a Uint32Array.
hast utility to get the plain-text value of a node
Determine a value's type.
Test if a value is object-like.
Detect native Symbol.toStringTag support.
Test if an object has a specified property.
Define (or modify) an object property.
Detect native Float64Array support.
Generate string from a token array by interpolating values.
Get a property from an object using dot (object path) notation.
Test if a value is a Uint8Array.
Detect native Uint16Array support.
Test if a value is a Uint16Array.
Test if a value is an array.
Determine the name of a value's constructor.
Test if a value is a Buffer object.
Define a non-enumerable read-only property.
Test if a value is a plain object.
Replace search occurrences with a replacement string.
Convert between POSIX and Windows paths.
Return the current working directory.
Return the global object.
Tokenize a string into an array of string parts and format identifier objects.
Test if a value is a regular expression.
Detect native Float32Array support.
Function which does nothing.
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 NaN.
Return the prototype of a provided object.
Test if a value is an object.
Split a double-precision floating-point number into a higher order word and a lower order word.
Read data from stdin.
Check if an environment is big endian.
Detect native Uint8Array support.
Test if a double-precision floating-point numeric value is infinite.
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.
Detect native Buffer support.
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.
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.
Create a double-precision floating-point number from a higher order word and a lower order word.
Convert a string to lowercase.
mdast utility to generate a table of contents from a tree
Convenience wrapper for Got to interact with the GitHub API
(IEC) Utility to parse a string bytes to bytes and vice-versa
UI utilities
vfile utility to parse the YAML front matter in a file
Tiny wrapper around ansi-colors to add colored symbols and a timestamp.
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
Flattens React children and fragments to an array with predictable and stable keys
A crawling file watcher.
Minimum utility toolbelt
unist utility to select nodes with CSS-like selectors
Utility to make vitest tests fail when console.error() or console.warn() are used
Flatten a nested array.
Merge two lists, trying to preserve the order of both
Return a copy of the object only containing the whitelisted properties.
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
mdast utility to get the style of a heading
🔧 Fast, modern, and practical utility library for FP in TypeScript.
unist utility to create a new tree by mapping all nodes
hast utility to find and replace text in a tree
mdast utility to transform to nlcst
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.
Various utility functions
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.
Returns a shallow copy of an object without blacklisted properties
Gets you the Cypress test command log as JSON on failure
less broken typeof
Get the prototype chain of any value as an Array
Convert react components to plain text without any HTML markup
Easy way to mock process.env during BDD testing
Simplified, lightweight HTTP client library
here-document on node.js
A collection of decorators using lodash at it's core.
unist utility to find a node
Blazing fast, tree-shakeable, type-safe, modern utility library to sort any type of array in less than 1 KB!
es-escape-html rewrite for ESM
Format an error message for production.
Convert Gitignore to Glob patterns
A library of Javascript utility functions with an emphasis on Functional Programming.
Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged
Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.
TOAST UI Utility: CodeSnippet
Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.
hast utility to check if a node is a conditional comment
Test if a finite double-precision floating-point number is an integer.
Returns `true` if the given string or array starts with prefix using strict equality for comparisons. Using fastest implementation.
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
Test if a finite numeric value is an odd number.
Replace search occurrences with a replacement string.
React utility to flatten fragments.
Simple merge utility to extend objects without extra dependencies
hast utility to transform to the DOM
Convert a string to lowercase.
A Javascript utility library for working with native objects.
vandium common utility functions
Core module for the Sugar Javascript utility library.
React Native flashbar and top notification alert utility
TypeScript common pattern shortcut definitions / utility gist library
Check if the package is being installed by another package
Simplified HTTP request client.
puppeteer + dom-testing-library
nlcst utility to check whether a node is meant literally
vfile utility to find one or more files by searching the file system upwards
Test if a finite numeric value is an even number.
Test if a value is a number having a nonnegative integer value.
Check if a value is undefined or not.
Utility to find webpack settings in react-scripts and other situations
Test if a value is a number having an integer value.
Constant function.
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.
Test if a value is NaN.
Assert utility from yeoman
Utils for normalizing and formatting repo data.
Utilities for react-native + iOS and wrappers for using swift together with fabric/paper + JSI
Convert an unsigned 32-bit integer to a signed 32-bit integer.
Set the less significant 32 bits of a double-precision floating-point number.
Parses a regular expression string and returns a new regular expression.
A modern tooling library for asynchronous operations using async/await, promises and async generators
Returns `true` if a value exists in the given string, array or object.
Return an unsigned 32-bit integer corresponding to the less significant 32 bits of a double-precision floating-point number.
nlcst utility to normalize a word for easier comparison
nlcst utility to search for patterns in a tree
qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.
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'.
A collection of serverless framework utilities
Test if a double-precision floating-point numeric value is negative zero.
Given an object returns list of all possible paths to its properties
Test if a value is a collection.
A VitePress auto sidebar plugin that automatically creates a simple configuration.
Copy an error object.
Returns the first index at which a given element can be found.
Test if a value is an Int8Array.
Create a new object filtered to have only properties for which the callback returns true.
Validate, sanitize and document JSON schemas
hast utility to transform to nlcst
Test if a value is an arguments object.
Detect native Uint8ClampedArray support.
Test if a value is a Uint8ClampedArray.
Test if a value is an Int16Array.
Query for the status of any game server in Node.JS
Detect native Int32Array support.
Detect native Int16Array support.
Test if a value is an Int32Array.
Detect native Int8Array support.
Return the first index at which a given element can be found.
Minify email templates
Test if an object's own property is enumerable.
Match substrings on the left or right of a given index, ignoring whitespace
Return an array of an object's own enumerable property names.
A Typescript-First utility library inspired by Lodash. Optimized for modern browsers.
unist utility to find nodes before another node
Detect native generator function support.
walk directory for esm and cjs modules
Alias for eval global.
Test if a value is an Error object.
Essential utilities for TypeScript projects
Utilities for working with common protobuf types
Define a non-enumerable read-only accessor.
Define a read-only property.
Return a property descriptor for an object's own property.
String manipulation functions.
Collection of utilities for FusionCharts
hast utility to check if an element is a JavaScript script
Return an array of an object's own enumerable and non-enumerable property names.
React Hook & Utility Library
Test if a value is a number having a positive integer value.
Auto-import components in Astro projects
Standard assertion utilities.
hast utility to check if a property is an event handler
Standard utilities.
hast utility to set the plain-text value of a node
Minimal JavaScript type checking library
hast utility to check if an element is a css style
OS utilities.
Command-line interface.
Return an unsigned 32-bit integer corresponding to the IEEE 754 binary representation of a single-precision floating-point number.
TypeScript utilities.
hast utility to check if an element is a css link