</>PackageGraphPackageGraph

redent

npmv4.0.0

Strip 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.

2
Direct dependencies

Runtime packages this one declares itself.

2
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

13 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
redentthis page03MIT5 years ago
strip-indent01MIT1 day ago
strip-bom01MIT1 day ago
strip-json-comments02MIT1 day ago
indent-string94M2MIT1 day ago
escape-string-regexp316.5M8MIT1 day ago

Dependencies

Declared by redent v4.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

ava ^3.15.0tsd ^0.14.0xo ^0.39.1

Used by

Popular packages that depend on redent.

Relationship graph

Dependencies (left) and dependents (right) of redent.

Frequently installed together

Release history

No releases in the last two years, typically about 739 days apart.

Recent versions of redent
VersionPublishedSizeLicense
4.0.0latest5 years ago3.8 KBMIT
3.0.07 years ago3.5 KBMIT
2.0.010 years agoMIT
1.0.011 years agoMIT

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

Keywords

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.