Convert additive strings to ES6 template strings.
Basic templating code, similar to Mustache.js. It originally started as needing a very simplistic template library, hence creating my own version, before snowballing requirements basically made it almost the same functional capacity as Mustache.js. On the
Super simple templatizer, converts HTML into a Javascript function.
Get the visual width of a string - the number of columns required to display it
Escape RegExp special characters
A utility package to parse strings
Indent each line in a string
Modify strings, generate sourcemaps
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
A minimal UTF8 implementation for number arrays.
LZ-based compression algorithm
Wordwrap a string with ANSI escape codes
Strip leading whitespace from each line in a string
Native Access to MacOS FSEvents
CLI arguments parser. Native port of python's argparse.
A minimal base64 implementation for number arrays.
Matches strings against configurable strings, globs, regular expressions, and/or functions
Utility to parse a string bytes to bytes and vice-versa
Repeat the given string n times. Fastest implementation for repeating a string.
A minimal path module to resolve Unix, Windows and URL paths alike.
Generate a unique character string suitible for use in files and URLs.
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
Out of the box, Rails will render templates in a controller context only. This gem allows for calling "render" from anywhere: models, background jobs, rake tasks, you name it.
Liquid template validator
Habariki is a template match engine for strings that can extract part of text by template keywords.
At its core, it can take a templated string (such as: '{last_name}, {first_name} {middle_name}') and a input object (default is a plain old Ruby object) and it will dynamically resolve the string based on the input.
CLI Templating System and String Formatter
Simple string templating library.
Compile template strings with values from objects.
Replace plain text strings in your slim templates and Rails controllers with calls to I18n t() method. Keys and YAML output files will be automatically generated and filled in.
Simple parser to replace variables inside templates/strings and files
Include template strings in Rails ViewComponent class definitions
Automatically extract strings from ERB templates and replace with calls to t()
Interpolate values from a hash or array into a template string.