apsdehal / spaces-to-tabs

Convert spaces to tabs in your files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spaces-to-tabs

NPM Version Build Status

Convert spaces to tabs

Install

npm install --global spaces-to-tabs

Usage

  $ spaces-to-tabs -h

  Usage: spaces-to-tabs [options] <file ...>

  Space to tabs: Convert space in your files to tabs

  Options:

    -h, --help              output usage information
    -V, --version           output the version number
    -s, --spaces <integer>  Number of spaces in a group to convert
    -w, --no-write          Don't write the file. Writes by default.

  Globbing is supported in files

  Examples:

    $ spaces-to-tabs jquery-mobile/tests/**/*.js -s 4

  By Amanpreet Singh <@apsdehal>

API

$ npm install --save spaces-to-tabs

var stt = require('spaces-to-tabs');
var str = 'some Strings';
var spacesNo = 4;
str = stt(str, spacesNo);

License

MIT © Amanpreet Singh

About

Convert spaces to tabs in your files

License:MIT License


Languages

Language:JavaScript 100.0%