redent
npmv4.0.0Strip redundant indentation and indent the string
Not recommended for new projects
No — redent should not be adopted for new projects. Last published 1955 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1955 days ago.
- AWeight: grade A, Excellent.
Pulls in 2 transitive packages, about 13 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding redent to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing redent, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=12
- Module format
- ESM only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the redent README.
import redent from 'redent';
redent('\n foo\n bar\n', 1);
//=> '\n foo\n bar\n'redent vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| redentthis page | 0 | 3 | MIT | 5 years ago |
| strip-indent | 0 | 1 | MIT | 1 day ago |
| strip-bom | 0 | 1 | MIT | 1 day ago |
| strip-json-comments | 0 | 2 | MIT | 1 day ago |
| indent-string | 94M | 2 | MIT | 1 day ago |
| escape-string-regexp | 316.5M | 8 | MIT | 1 day ago |
Dependencies
Declared by redent v4.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Dev (3)
Used by
Popular packages that depend on redent.
Custom jest matchers to test the state of the DOM
CLI app helper
Simple and complete React Native testing utilities that encourage good testing practices.
Relationship graph
Dependencies (left) and dependents (right) of redent.
Frequently installed together
Next generation testing framework powered by Vite
The tiniest and the fastest library for terminal output formatting with ANSI colors
Stringify any JavaScript value.
React is a JavaScript library for building user interfaces.
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Delightful JavaScript Testing.
A JavaScript implementation of many web standards
A framework for building native apps using React
No description provided.
A modern CSS parser and stringifier with TypeScript support
Programmatic access to the ARIA specification
This package exports the `expect` function used in [Jest](https://jestjs.io/). You can find its documentation [on Jest's website](https://jestjs.io/docs/expect).
Release history
No releases in the last two years, typically about 739 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.0.0latest | 5 years ago | 3.8 KB | MIT |
| 3.0.0 | 7 years ago | 3.5 KB | MIT |
| 2.0.0 | 10 years ago | — | MIT |
| 1.0.0 | 11 years ago | — | MIT |
Overview
redent is an npm package that strip redundant indentation and indent the string. It has 3 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 focused 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
- 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.
Maintainers
Funding
Frequently asked questions
Should I use redent?
No — redent should not be adopted for new projects. Last published 1955 days ago.
How do I install redent?
Run `npm install redent` to add redent to your npm project.
How many dependencies does redent have?
redent declares 5 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 13 KB on disk.
What license is redent released under?
redent is distributed under the MIT license.
How popular is redent?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on redent.
Is redent still maintained?
The most recent release of redent (v4.0.0) was published 5 years ago.
Does redent run install scripts?
No. redent does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.