@alloc/change-indent
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

change-indent NPM version

Change the indentation in a string.

Install

Install with npm:

npm i change-indent --save-dev

Usage

var changeIndent = require('change-indent');
change(string, indent);
  • string {String} pass the string you want to re-indent
  • indent {Number} the amount of indentation

Example:

var changeIndent = require('change-indent');
change('  abc', 4);

//=> '    abc'

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on August 11, 2014.

Package Sidebar

Install

npm i @alloc/change-indent

Weekly Downloads

0

Version

0.1.1

License

none

Unpacked Size

4.48 kB

Total Files

5

Last publish

Collaborators

  • aleclarson