0.0.3 • Published 6 years ago

spaces-to-tabs v0.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
6 years ago

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

0.0.3

6 years ago

0.0.2

8 years ago

0.0.1

8 years ago