https://github.com/agilecreativity/extension_lister
List all unique file extensions from a given directory recursively
https://github.com/agilecreativity/extension_lister
Last synced: over 1 year ago
JSON representation
List all unique file extensions from a given directory recursively
- Host: GitHub
- URL: https://github.com/agilecreativity/extension_lister
- Owner: agilecreativity
- License: mit
- Created: 2014-07-17T06:54:46.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-16T13:10:32.000Z (almost 11 years ago)
- Last Synced: 2025-03-30T05:01:57.173Z (over 1 year ago)
- Language: Ruby
- Size: 176 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## extension_lister
[][gem]
[][gemnasium]
[][codeclimate]
[gem]: http://badge.fury.io/rb/extension_lister
[gemnasium]: https://gemnasium.com/agilecreativity/extension_lister
[codeclimate]: https://codeclimate.com/github/agilecreativity/extension_lister
### Installation
Add this line to your application's Gemfile:
gem 'extension_lister'
And then execute:
$ bundle
Or install it yourself as:
$ gem install extension_lister
### Usage
- List all extension from a current directory (recursively)
```
extension_lister
```
For typical ruby project like (e.g. this gem), we should get something like:
```
.gem
.gemspec
.lock
.md
.rb
```
- List all extension from a given directory
```
extension_lister -b ~/Downloads
```
### Contributing
1. [Fork it](https://github.com/agilecreativity/extension_lister/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
[thor]: https://github.com/erikhuda/thor
[minitest]: https://github.com/seattlerb/minitest
[guard]: https://github.com/guard/guard
[yard]: https://github.com/lsegal/yard
[pry]: https://github.com/pry/pry
[rubocop]: https://github.com/bbatsov/rubocop
[grit]: https://github.com/mojombo/grit