Socket
Book a DemoInstallSign in
Socket

change-indent

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

change-indent

Change the indentation in a string.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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.

Keywords

change

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts