https://github.com/koic/vanish
`vanish` removes the useless white space in the text file.
https://github.com/koic/vanish
tool whitespace
Last synced: 12 months ago
JSON representation
`vanish` removes the useless white space in the text file.
- Host: GitHub
- URL: https://github.com/koic/vanish
- Owner: koic
- License: mit
- Created: 2017-05-02T06:51:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-25T10:58:28.000Z (over 7 years ago)
- Last Synced: 2024-11-18T02:54:30.830Z (over 1 year ago)
- Topics: tool, whitespace
- Language: Ruby
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# vanish [](https://travis-ci.org/koic/vanish) [](http://badge.fury.io/rb/vanish) [](https://git.legal/projects/3962)
`vanish` removes the useless white space in the text file.
## Installation
```sh
% gem install vanish
```
## Usage
Display the contents to apply vanish command on standard output.
```sh
% vanish
```
It corrects automatically by vanish command.
```sh
% vanish -a
```
or
```sh
% vanish --auto-correct
```
As a result, remove blank lines at the top and bottom of the file and a white space at the end of line.
```diff
-
-
def say
- puts 'hello'
+ puts 'hello'
end
-
-
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/koic/vanish.
## License
vanish is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).