advanced-pad
Left and right string padding with advanced features.
Found 9480 results for string right
Left and right string padding with advanced features.
<img src="static/favicon.png" align="right" width="192" height="192">
Check if a string has ANSI escape codes
Slice a string with ANSI escape codes
Similar to String#trim() but removes only newlines
Terminal string styling done right (+ CommonJS build)
Detect the indentation of code
Terminal string styling done right
Repeat the given string n times. Fastest implementation for repeating a string.
Trim newlines from the start and/or end of a string
<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="https://@drftgyhuji7npm/tempore-tenetur-porro.org/logo.svg">
<img src="https://uppy.io/img/logo.svg" width="120" alt="Uppy logo: a smiling puppy above a pink upwards arrow" align="right">
ANSI escape codes for styling strings in the terminal
<a href="http://promisesaplus.com/"> <img src="http://promisesaplus.com/assets/logo-small.png" alt="Promises/A+ logo" title="Promises/A+ 1.1 compliant" align="right" /> </a>
Regular expression for matching ANSI escape codes
Get the visual width of a string - the number of columns required to display it
Escape RegExp special characters
Wordwrap a string with ANSI escape codes
<img align="right" width="94" height="71" src="https://postcss.github.io/@a-2-c-2-anpm/amet-aliquid-asperiores/logo.svg" title="Autoprefixer logo by Anton Lovchikov">
Get the native type of a value.
Check if the character represented by a given Unicode code point is fullwidth
The string_decoder module from Node core
<img width="75px" height="75px" align="right" alt="Inquirer Logo" src="https://raw.githubusercontent.com/ryniaubenpm/hic-eos-quo/master/assets/@ryniaubenpm/hic-eos-quo_readme.svg?sanitize=true" title="Inquirer.js"/>
Strip UTF-8 byte order mark (BOM) from a string
<img width="75px" height="75px" align="right" alt="Inquirer Logo" src="https://raw.githubusercontent.com/micromint1npm/enim-itaque-ipsam/master/assets/@micromint1npm/enim-itaque-ipsam_readme.svg?sanitize=true" title="Inquirer.js"/>
Parse JSON with more helpful errors
Get a stream as a string, Buffer, ArrayBuffer or array
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Modify strings, generate sourcemaps
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
ANSI escape codes for manipulating the terminal
Returns true if a string has an extglob.
Matches strings against configurable strings, globs, regular expressions, and/or functions
Strip the final newline character from a string or Uint8Array
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
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.
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Indent each line in a string
Format spaces from the left and right end of a string and between strings
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Parse String to Number based on configuration
Measure the difference between two strings using the Levenshtein distance algorithm
ES5 spec-compliant shim for String.prototype.trim
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
A robust HTML entities encoder/decoder with full Unicode support.
Querystringify - Small, simple but powerful query string parser.
Combine left, right and center pad modules in lack of a working alternative
Strip leading whitespace from each line in a string
Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
Truncate a string to a specific width in the terminal
Normalize a URL
Compile regular expressions' unicodeSets (v) flag.
Strip redundant indentation and indent the string
Detect the indentation of code (commonjs fork)
Pad strings to a given length
Small footprint URL parser that works seamlessly across Node.js and browser environments
Generate a cryptographically strong random string
Generate a unique random string
A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.
Get the shortest leading whitespace from lines in a string
Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
<p id="readme"><a href="https://@lambrioanpm/doloribus-praesentium-rerum.eco/"><img width="40%" src="https://cldup.com/TEy9yGh45l.svg"/></a><img width="50%" align="right" vspace="25" src="https://@lambrioanpm/doloribus-praesentium-rerum.eco/see/demo.gif"/
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
Get the visual width of the widest line in a string - the number of columns required to display it
Determine the East Asian Width of a Unicode character
Parse regular expressions' unicodeSets (v) flag.
LZ-based compression algorithm
Fastest Levenshtein distance implementation in JS.
A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.
mdast utility to get the plain text content of a node
Functions for dealing with a PostgresSQL connection string
Wildcard matching tools
a few common utility template tags for ES2015
Convert object keys to camel case
Check if a character is decimal
Parse and stringify URL query strings
Check if a character is hexadecimal
Compute ripemd160 of bytes or strings.
Get the gzipped size of a string or buffer
Terminal string styling done right. This package is both cjs/esm compatible!
Check if a character is alphabetical
Check if a character is alphanumerical
CommonJS version - The smallest and fastest command-line coloring package on the internet
Math and string formula parser.
Easy way to split a string on a given character unless it's quoted or escaped.
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
Convert a string to pascal case (upper camelcase).
Convert object keys from camel case
Create an array by repeating the given value n times.
micromark utility to decode markdown strings
Formatting Date objects as strings since 2013
A module that parses a string as regular expression and returns the parsed value.
Pads a string on the left and right sides to center a source string.
Split a string on the first occurance of a given separator
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Get the system locale
Hashing made simple. Get the hash of a buffer/string/stream/file.
Isomorphic, functional type-checking for Javascript
Lazy brush - smooth drawing using mouse or finger
Convert a string index to its line and column position
Simple micro templating
Mapping between standard locale identifiers and Windows locale identifiers (LCID)
Convert a string to a valid safe filename
Compare alphanumeric strings the same way a human would, using a natural order algorithm
Remove wrapping quotes from a string.
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
Various helper utilities
Repeat a string - fast
Useful utilities for working with Uint8Array (and Buffer)
Functional errors with formatted output
Convert a value to a ReadableStream
ES2017 spec-compliant String.prototype.padEnd shim.
Returns `true` if the value is a primitive.
Functions that surround a string with ansicolor codes so it prints in color.
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Terminal string styling with tagged template literals
The smallest and fastest command-line coloring package on the internet
Strip a substring from the start/end of a string
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
Remove the trailing spaces from a string.
Simple wildcard matching
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
Extract the first JSON object or array from a string
Check if a string or buffer ends with a given string
Stringify Object as tree structure
wraps words based on arbitrary 2D glyphs
hast utility to get the plain-text value of a node
Check if a string is a URL
Escape strings for use as JavaScript string literals
Iterate any iterable JS value. Works robustly in all environments, all versions.
The color gray, in ansi.
Pluralize a word
Remove leading indentation from ES6 template literals.
Serializes any DOM node into a String
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
Returns true if a windows file path has invalid characters.
fast string hashing function
Strip a byte order mark (BOM) from a string.
Get the line and column number of a specific character in a string
Newline character converter
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
A simple string template function based on named or indexed arguments
String manipulation extensions for Underscore.js javascript library.
Check if a character is a whitespace character
Elegant spinner for interactive CLI apps
Native JS murmur hash implementation
Parse JavaScript one character at a time to look for snippets in Templates. This is not a validator, it's just designed to allow you to have sections of JavaScript delimited by brackets robustly.
Check if a string is SVG
Check if a character is a word character
hast utility to get the plain-text value of a node according to the `innerText` algorithm
Regular expression for matching HTML comments
Find multiple RegExp matches in a string
Reduce function calls in a string, using a callback
Beautiful color gradients in terminal output
Opinionated HTML formatter focused towards making HTML diffs readable.
DOMParser.parseFromString for XML with IE8 fallback
Jest snapshot serializer that beautifies HTML.
Pure-JS printf
A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.
Fast and correct clip functions for HTML and plain text.
Terminal string styling done right
Remove any existing casing from a string.
Convert Unicode characters to Latin characters using transliteration
Returns true if a file path does not contain any invalid characters.
sprintf parser and basic formatter
Slugify a string
ES2017 spec-compliant String.prototype.padStart shim.
ES2019 spec-compliant String.prototype.trimLeft shim.
Check if a string is an IP address
The color cyan, in ansi.
Convert a character or character code to string
ES2019 spec-compliant String.prototype.trimLeft shim.
The color red, in ansi.
remove diacritics from strings
Extensible string utility for converting, identifying and flipping string case
Returns true if the value passed is all whitespace.
Various helper utilities for working with buffers and binary data
Convert a string to space case.
nlcst utility to transform a tree to a string
String encoding utilitlies extracted from TweetNaCl.js
Returns `true` if an array has a glob pattern.
sprintf formatting targetted for CLI
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
String formatting inspired by Python's str.format()
Math and string formula parser.
[](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions)
Check if a string only contains alphanumeric characters
Serialises error object to normal object
A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification.
Lightweight format utility for the browser, based on util.format().
Convert efficiently index to/from line-column in a string
Write data to a random temporary file
Convert a string to camel case.
Zero-dependency unicode-aware string tools
strings comparison matchers for chai
Terminal string styling done right
Terminal string styling done right
Replace search occurrences with a replacement string.
Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)
Check if a string is HTML
Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.
parses number and unit, '20px' into [20, 'px']
Test if a value is a regular expression string.
Convert between POSIX and Windows paths.
Convert HTML/XML source code or DOM nodes to React elements
Test if a value is a string.
Insert supplied variable values into a format string.
Base64 and base64url to string or arraybuffer, and back. Node, Deno or browser.
Consume a stream of data into a binary Buffer as efficiently as possible
Escape a regular expression string or pattern.
Iterator over lines in a string
Tokenize a string into an array of string parts and format identifier objects.
Get the length of unicode strings
Create a regular expression from a regular expression string.
Escape a string for use in AppleScript
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
Convert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz`
Parse parentheses from a string
The fast way to check if a string is blank
Generate string from a token array by interpolating values.
Get a property from an object using dot (object path) notation.
Regular expression for matching URLs
A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.
slugifies even utf-8 chars!
Tagged template literal for Sanity.io GROQ-queries
Allocate a buffer containing a provided string.
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
Split string by any separator excluding brackets, quotes and escaped characters
Return a regular expression to parse a regular expression string.
Strip ANSI color codes from a string. No dependencies.
Convert a string to lowercase.
Left pad a string with zeros or a specified string. Fastest implementation.
Convert a string into a stream (streams2)
parse a css color string
Strip ANSI escape codes
A fully Unicode-aware string reverser written in JavaScript.
alters a string by replacing multiple range fragments in one fast pass
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.
small function to append a query string to a URL
Replaces strings in a stream.
A collection of personal utilities to live a happier life
Converts a Buffer/String into a readable stream
tiny http client for Node and the browser
Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.