Search results

1000+ packages found

Indent each line in a string

published version 5.0.0, 4 years ago1665 dependents licensed under $MIT
239,962,561

Strip leading whitespace from each line in a string

published version 4.0.0, 4 years ago1209 dependents licensed under $MIT
162,587,634

Detect the indentation of code

published version 7.0.1, 3 years ago934 dependents licensed under $MIT
76,267,617

Strip redundant indentation and indent the string

published version 4.0.0, 4 years ago818 dependents licensed under $MIT
127,685,496

A ESLint plugin to lint and fix inline scripts contained in HTML files.

published version 8.1.3, 3 months ago1647 dependents licensed under $ISC
3,348,063

Get the shortest leading whitespace from lines in a string

published version 1.0.1, 5 years ago724 dependents licensed under $MIT
107,592,800

Prettier is an opinionated code formatter

published version 3.3.2, 3 months ago0 dependents licensed under $MIT
1,983

Detect the indentation of code (commonjs fork)

published version 7.0.1, 3 years ago3 dependents licensed under $MIT
1,157,884

rehype plugin to format HTML

published version 5.0.1, a year ago142 dependents licensed under $MIT
1,052,229

JSON.parse with context information on error

published version 4.0.0, a year ago1386 dependents licensed under $MIT
264,340,712

Left pad a string to align with the longest string in an array

published version 3.0.0, 4 years ago6 dependents licensed under $MIT
2,067,956

remark-lint rule to warn when the content of a list item has mixed indentation

published version 4.0.1, 6 months ago23 dependents licensed under $MIT
510,445

Stringify and write JSON to a file atomically

published version 6.0.0, a year ago392 dependents licensed under $MIT
13,326,059

remark-lint rule to check the spacing between list item bullets and content

published version 4.0.1, 6 months ago50 dependents licensed under $MIT
765,707

remark-lint rule to warn when list item bullets are indented

published version 5.0.1, 6 months ago24 dependents licensed under $MIT
638,448

The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.

published version 4.0.0, 3 years ago262 dependents licensed under $MIT
7,869,184

remark-lint rule to warn when heading content is indented

published version 5.0.1, 6 months ago32 dependents licensed under $MIT
631,716

Pad each line in a stream

published version 4.0.0, 3 years ago10 dependents licensed under $MIT
197,717

Detect the dominant newline character of a string

published version 4.0.1, 2 years ago1126 dependents licensed under $MIT
154,992,030

Format HTML strings.

published version 1.1.7, a year ago38 dependents licensed under $MIT
42,124