indent

0.0.2 • Public • Published

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"

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i indent

    Weekly Downloads

    9,985

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • airportyh