redent
npmv4.0.0Strip redundant indentation and indent the string
Overview
redent is an npm package that strip redundant indentation and indent the string. It is extremely widely used, with about 61.3M downloads per week and 2 known dependents in the graph. The latest version is 4.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need strip redundant indentation and indent the string and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (61.3M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of redent.
Dependencies
Runtime (2)
Dev (3)
Used by
Popular packages that depend on redent.
Alternatives to redent
Strip UTF-8 byte order mark (BOM) from a string
Strip comments from JSON. Lets you use comments in your JSON files!
Escape RegExp special characters
Extract the non-magic parent path from a glob string.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Split a string on the first occurance of a given separator
Get the line and column number of a specific character in a string
Indent-based CSS syntax for PostCSS
Fastest Levenshtein distance implementation in JS.
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
Returns true if a string has an extglob.
Frequently installed together
Stringify any JavaScript value.
A framework for building native apps using React
React is a JavaScript library for building user interfaces.
Delightful JavaScript Testing.
The tiniest and the fastest library for terminal output formatting with ANSI colors
A lightweight test renderer for React and a modern replacement for the deprecated React Test Renderer.
TypeScript definitions for node
TypeScript definitions for react
Programmatic access to the ARIA specification
Implements https://w3c.github.io/accname/
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Jest preset for React Native apps
Version history
| Version | Published | License |
|---|---|---|
| 4.0.0latest | 5 years ago | MIT |
| 3.0.0 | 7 years ago | MIT |
| 2.0.0 | 10 years ago | MIT |
| 1.0.0 | 10 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install redent?
Run `npm install redent` to add redent to your npm project.
What license is redent released under?
redent is distributed under the MIT license.
How popular is redent?
redent has approximately 61,279,098 downloads per week and 2 known dependent packages.