strip-indent alternatives and similar modules
Based on the "Text" category.
Alternatively, view strip-indent alternatives based on common mentions on social networks and blogs.
-
nanoid
A tiny (130 bytes), secure, URL-friendly, unique string ID generator for JavaScript -
Numeral.js
A javascript library for formatting and manipulating numbers. -
Flexsearch
Next-Generation full text search library for Browser and Node.js -
Underscore.string
String manipulation helpers for javascript -
i18n-node
Lightweight simple translation module for node.js / express.js with dynamic json storage. Uses common __('...') syntax in app and templates. -
StegCloak
Hide secrets with invisible characters in plain text securely using passwords ๐ง๐ปโโ๏ธโญ -
camelcase
Convert a dash/dot/underscore/space separated string to camelCase: foo-bar โ fooBar -
babelfish
human friendly i18n for javascript (node.js + browser) -
string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes -
parse-columns
Parse text columns, like the output of unix commands -
unhomoglyph
Replace all homoglyphs with base characters. Useful to detect similar strings. -
splice-string
Remove or replace part of a string like Array#splice -
hanging-indent
format a string into a hanging indent with Node.js
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of strip-indent or a related project?
README
strip-indent 
Strip leading whitespace from each line in a string
The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
Useful for removing redundant indentation.
Install
$ npm install strip-indent
Usage
const stripIndent = require('strip-indent');
const string = '\tunicorn\n\t\tcake';
/*
unicorn
cake
*/
stripIndent(string);
/*
unicorn
cake
*/
Related
- strip-indent-cli - CLI for this module
- indent-string - Indent each line in a string
Get professional support for this package with a Tidelift subscription Tidelift helps make open source sustainable for maintainers while giving companiesassurances about security, maintenance, and licensing for their dependencies.