lz-string
LZ-based compression algorithm
Found 10015 results for string compression
LZ-based compression algorithm
LZ-based compression algorithm
Tiny string compression module for Node.
LZ-based compression algorithm for TypeScript projects (Browser, Node.js)
LZ-based compression algorithm for JavaScript with ESM support
LZ77(LZSS) based compression algorithm in base62 for JavaScript
Tiny and fast string compression library with Unicode support
Brotli compression/decompression that encodes to base-unicode and back. Node.js and Browser support.
LZ-based compression algorithm
LZ-based (unsafe) compression algorithm
LZ-based compression algorithm
LZ-based compression algorithm
JavaScript String Compressor - lossless string compression algorithm
Encodes text and binary data to a subset of Unicode plane 1 (BMP). Runs in browser and Node.js. Character compression. Makes binary data copy-pastable. URL-safe.
LZ-based compression algorithm
Angular wrapper for lz-string, an LZ-based compression algorithm
Tiny string compression module for Node.
repetitive object compression by templating
LZ-based compression algorithm
parse a css color string
LZ-based compression algorithm
Reduces the size of strings. Has zero dependencies. Works in browser and NodeJS. Made possible by the very efficient JSCrush algorithm.
ANSI escape codes for styling strings in the terminal
Regular expression for matching ANSI escape codes
Get the visual width of a string - the number of columns required to display it
Strip ANSI escape codes from a string
Provide utilities for common tasks such as, file compression, file download, OS integration, exec, etc
Terminal string styling done right
Escape RegExp special characters
Wordwrap a string with ANSI escape codes
JS/TS runtime-agnostic byte toolkit for UTF-8, base45, base58, base58btc, base64, base64url, hex, Z85, unsigned BigInt conversion, JSON, normalization, compression, concatenation, and comparison.
Check if the character represented by a given Unicode code point is fullwidth
URL Friendly Integer compression made in JavaScript
The string_decoder module from Node core
Modify strings, generate sourcemaps
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
Strip UTF-8 byte order mark (BOM) from a string
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Get the native type of a value.
Returns true if a string has an extglob.
Parse JSON with more helpful errors
A compression library for strings, that recognizes common words, and creates references to them.
Get a stream as a string, Buffer, ArrayBuffer or array
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.
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
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
ANSI escape codes for manipulating the terminal
Indent each line in a string
Slice a string with ANSI escape codes
Matches strings against configurable strings, globs, regular expressions, and/or functions
Strip the final newline character from a string or Uint8Array
Parse String to Number based on configuration
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
Measure the difference between two strings using the Levenshtein distance algorithm
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
ES5 spec-compliant shim for String.prototype.trim
Truncate a string to a specific width in the terminal
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Determine the East Asian Width of a Unicode character
Strip leading whitespace from each line in a string
Strip redundant indentation and indent the string
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Check if a character is decimal
Querystringify - Small, simple but powerful query string parser.
Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible
Normalize a URL
A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.
mdast utility to get the plain text content of a node
A robust HTML entities encoder/decoder with full Unicode support.
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).
Get the shortest leading whitespace from lines in a string
Functions for dealing with a PostgresSQL connection string
Get the visual width of the widest line in a string - the number of columns required to display it
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
CommonJS version - The smallest and fastest command-line coloring package on the internet
Compile regular expressions' unicodeSets (v) flag.
Check if a character is alphanumerical
Small footprint URL parser that works seamlessly across Node.js and browser environments
Check if a character is hexadecimal
Generate a unique random string
A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.
A module that formats a string based on a pattern
Generate a cryptographically strong random string
Fastest Levenshtein distance implementation in JS.
Check if a character is alphabetical
micromark utility to decode markdown strings
Detect the indentation of code
Useful utilities for working with Uint8Array (and Buffer)
Parse regular expressions' unicodeSets (v) flag.
The smallest and fastest command-line coloring package on the internet
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
a few common utility template tags for ES2015
Repeat the given string n times. Fastest implementation for repeating a string.
Parse and stringify URL query strings
Convert object keys to camel case
Trim newlines from the start and/or end of a string
Various helper utilities for working with buffers and binary data
Wildcard matching tools
A string interpolation component that formats and interpolates a template string in a safe way
Split a string on the first occurance of a given separator
Get the gzipped size of a string or buffer
Math and string formula parser.
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
Check if a string has ANSI escape codes
A fast function for calculating the visual width of a string once printed to the terminal.
Various helper utilities
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
Stringify Object as tree structure
Isomorphic, functional type-checking for Javascript
Compress or decompress a string with native browser APIs with 'gzip', 'deflate', or 'deflate-raw'. Compatible to use with atob and btoa.
Easy way to split a string on a given character unless it's quoted or escaped.
Convert object keys from camel case
A compression library for strings, that recognizes common words, and creates references to them.
Compute ripemd160 of bytes or strings.
Hashing made simple. Get the hash of a buffer/string/stream/file.
Convert a string to pascal case (upper camelcase).
Convert a string index to its line and column position
hast utility to get the plain-text value of a node according to the `innerText` algorithm
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
A module that parses a string as regular expression and returns the parsed value.
Functional errors with formatted output
Convert a string to a valid safe filename
Formatting Date objects as strings since 2013
Simple wildcard matching
Simple micro templating
Create an array by repeating the given value n times.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Remove the trailing spaces from a string.
Mapping between standard locale identifiers and Windows locale identifiers (LCID)
Math and string formula parser.
Terminal string styling with tagged template literals
Get the system locale
Functions that surround a string with ansicolor codes so it prints in color.
Strip a byte order mark (BOM) from a string.
hast utility to get the plain-text value of a node
Remove wrapping quotes from a string.
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
Compare alphanumeric strings the same way a human would, using a natural order algorithm
Remove leading indentation from ES6 template literals.
Get the line and column number of a specific character in a string
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
ES2017 spec-compliant String.prototype.padEnd shim.
Native JS murmur hash implementation
Repeat a string - fast
Returns `true` if the value is a primitive.
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Convert a value to a ReadableStream
fast string hashing function
Strip a substring from the start/end of a string
A simple string template function based on named or indexed arguments
Check if a string is a URL
Slugify a string
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
Convert Unicode characters to Latin characters using transliteration
nlcst utility to transform a tree to a string
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.
Escape strings for use as JavaScript string literals
Serializes any DOM node into a String
Pluralize a word
remove diacritics from strings
Returns true if a windows file path has invalid characters.
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
DOMParser.parseFromString for XML with IE8 fallback
String manipulation extensions for Underscore.js javascript library.
The color gray, in ansi.
Pure-JS printf
Beautiful color gradients in terminal output
Iterate any iterable JS value. Works robustly in all environments, all versions.
Opinionated HTML formatter focused towards making HTML diffs readable.
A JavaScript library for compressing and decompressing strings using an original algorithm based on the LZ algorithm
Find multiple RegExp matches in a string
Reduce function calls in a string, using a callback
Newline character converter
A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification.
Jest snapshot serializer that beautifies HTML.
Returns true if a file path does not contain any invalid characters.
Check if a string is SVG
Check if a string is an IP address
Extensible string utility for converting, identifying and flipping string case
Tagged template literal for Sanity.io GROQ-queries
Compression array and convert it to string
Elegant spinner for interactive CLI apps
Base64 and base64url to string or arraybuffer, and back. Node, Deno or browser.
A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.
Check if a character is a whitespace character
Regular expression for matching HTML comments
Check if a character is a word character
Right pad a string with zeros or a specified string. Fastest implementation.
Encode & decode strings, bytes, and integers to Base62
Replaces strings in a stream.
Remove any existing casing from a string.
String encoding utilitlies extracted from TweetNaCl.js
slugifies even utf-8 chars!
Compress or decompress a string with native browser APIs.
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
String formatting inspired by Python's str.format()
sprintf parser and basic formatter
The color red, in ansi.
Escape RegExp special characters
The color cyan, in ansi.
Returns true if the value passed is all whitespace.
Generate human-readable ids from lists of easy-to-spell nouns and adjectives
Convert a string to space case.
Parse parentheses from a string
Convert between POSIX and Windows paths.
escape Markdown control characters
sprintf formatting targetted for CLI
ES2017 spec-compliant String.prototype.padStart shim.
Zero-dependency unicode-aware string tools
Replace search occurrences with a replacement string.
Escape a regular expression string or pattern.
Convert efficiently index to/from line-column in a string
Write data to a random temporary file
Tokenize a string into an array of string parts and format identifier objects.
Insert supplied variable values into a format string.
Generate string from a token array by interpolating values.
Test if a value is a string.
Lightweight format utility for the browser, based on util.format().
Split string by any separator excluding brackets, quotes and escaped characters
Convert a string to camel case.
Check if a string only contains alphanumeric characters
parses number and unit, '20px' into [20, 'px']
Convert HTML/XML source code or DOM nodes to React elements
Create a regular expression from a regular expression string.
ES2019 spec-compliant String.prototype.trimLeft shim.
Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.
ES2019 spec-compliant String.prototype.trimLeft shim.
The fast way to check if a string is blank
Returns `true` if an array has a glob pattern.
Serialises error object to normal object
LZ-based compression algorithm
Write nice template literals with newlines, but format as a single-line string
Convert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz`
Test if a value is a regular expression string.
Detect the indentation of code (commonjs fork)
Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)
Return a regular expression to parse a regular expression string.
Convert a string into a stream (streams2)
Check if a string is HTML
Escape a string for use in AppleScript
Allocate a buffer containing a provided string.
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
[](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions)
Iterator over lines in a string
An error subclass for wrapping non-error values
Regular expression for matching URLs
Left pad a string with zeros or a specified string. Fastest implementation.