Skip to content

airportyh/indent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Indent

Build Status NPM version NPM license

Indent a string.

Install

npm install indent

Usage

var indent = require('indent');

indent('hello\nworld', 2);
// "  hello\n  world"

indent('hello\nworld', '  ');
// "  hello\n  world"

indent('hello\nworld');
// "  hello\n  world"

indent('hello\nworld', '\t');
// "\thello\n\tworld"