Convert spaces to tabs
npm install --global spaces-to-tabs
$ 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>
$ npm install --save spaces-to-tabs
var stt = require('spaces-to-tabs');
var str = 'some Strings';
var spacesNo = 4;
str = stt(str, spacesNo);
MIT © Amanpreet Singh