git404hub

what is de-indent fr?

yyx990803/de-indent — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2016-01-05

13JavaScriptAudience · developerComplexity · 1/5DormantSetup · easy

tl;dr

A tiny utility that strips uniform extra leading whitespace from code snippets while preserving their meaningful indentation.

vibe map

mindmap
  root((repo))
    What it does
      Strips extra indentation
      Normalizes whitespace
      Preserves relative indent
    Tech stack
      JavaScript
    Use cases
      Clean template code
      Doc generators
      Code formatters
    Audience
      Developers
    Notes
      Single-purpose helper
      Lightweight

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Clean up code samples embedded in indented template strings.

VIBE 2

Normalize whitespace in a documentation generator's code blocks.

VIBE 3

Preprocess code snippets before displaying them in an editor.

VIBE 4

Strip extra padding from code pasted into a larger document.

what's the stack?

JavaScriptNode.js

how it stacks up fr

yyx990803/de-indent09catho/axonabdulrdeveloper/react--tic-tac-toe
Stars131313
LanguageJavaScriptJavaScriptJavaScript
Last pushed2016-01-05
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity1/54/51/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

prompts (copy fr)

prompt 1
Show me how to use de-indent to clean up a code snippet pulled from a template string.
prompt 2
Help me integrate de-indent into a documentation generator that displays code blocks.
prompt 3
Give me an example of the before-and-after output of de-indent on an indented code sample.
prompt 4
Explain how de-indent decides what counts as the 'extra' indentation to strip.

Frequently asked questions

what is de-indent fr?

A tiny utility that strips uniform extra leading whitespace from code snippets while preserving their meaningful indentation.

What language is de-indent written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js.

Is de-indent actively maintained?

Dormant — no commits in 2+ years (last push 2016-01-05).

How hard is de-indent to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is de-indent for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.