https://github.com/apsdehal/spaces-to-tabs
Convert spaces to tabs in your files
https://github.com/apsdehal/spaces-to-tabs
Last synced: 8 months ago
JSON representation
Convert spaces to tabs in your files
- Host: GitHub
- URL: https://github.com/apsdehal/spaces-to-tabs
- Owner: apsdehal
- License: mit
- Created: 2016-06-11T06:03:00.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-04T17:25:26.000Z (over 8 years ago)
- Last Synced: 2025-01-31T16:49:27.722Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# spaces-to-tabs
[](https://www.npmjs.com/package/spaces-to-tabs)
[](https://travis-ci.org/apsdehal/spaces-to-tabs)
Convert spaces to tabs
## Install
> npm install --global spaces-to-tabs
## Usage
```
$ spaces-to-tabs -h
Usage: spaces-to-tabs [options]
Space to tabs: Convert space in your files to tabs
Options:
-h, --help output usage information
-V, --version output the version number
-s, --spaces 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
```js
var stt = require('spaces-to-tabs');
var str = 'some Strings';
var spacesNo = 4;
str = stt(str, spacesNo);
```
## License
MIT © [Amanpreet Singh](https://apsdehal.in)