An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

## extension_lister

[![Gem Version](https://badge.fury.io/rb/extension_lister.svg)][gem]
[![Dependency Status](https://gemnasium.com/agilecreativity/extension_lister.png)][gemnasium]
[![Code Climate](https://codeclimate.com/github/agilecreativity/extension_lister.png)][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