indent
Indents a string.
Last updated 5 years ago by airportyh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install indent 
SYNC missed versions from official npm registry.

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"

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

3 Versions

  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago

Copyright 2014 - 2016 © taobao.org |