Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sshaw/explain-dependencies
Explains what your Ruby and JavaScript project's dependencies are.
https://github.com/sshaw/explain-dependencies
gemfile gems javascript nodejs package-json ruby yarn
Last synced: 15 days ago
JSON representation
Explains what your Ruby and JavaScript project's dependencies are.
- Host: GitHub
- URL: https://github.com/sshaw/explain-dependencies
- Owner: sshaw
- License: mit
- Created: 2017-09-09T06:15:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T02:31:47.000Z (about 7 years ago)
- Last Synced: 2024-10-10T18:53:35.429Z (about 1 month ago)
- Topics: gemfile, gems, javascript, nodejs, package-json, ruby, yarn
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Explain Dependencies
Explains what your project's dependencies are.
## Installation
[Ruby](https://www.ruby-lang.org/en/downloads/) is required. Once it's installed run:
gem install explain-dependencies
If you're using [Bundler](http://bundler.io/):
gem "explain-dependencies", :group => :development
## Usage
xdep [-ai] [-f format] [file or directory...]
-a, --add Add explanations to the dependency file, if possible
-i, --ignore-popular Ignore popular dependencies
-f, --format=NAME Output format for explanations (csv or source), defaults to csvYour dependencies must be installed in order to describe them.
### Output Formats
Explain Dependencies can output to CSV or add descriptions to the
dependency file.CSV output will contain the following columns: Language, Name,
Version, Description, Homepage, LicenseSource output adds the dependency's description as a comment
directly above the line that's including it. This is not supported for
all output formats.### Examples
Output a CSV file describing all of your project's dependencies:
xdep
Output a CSV file describing dependencies in `package.json`:
xdep package.json
Output a `Gemfile` with comments describing dependencies in `Gemfile`:
bundle exec xdep -f source Gemfile
Update your project's `Gemfile` with comments describing each
dependency, ignoring well-known dependencies:bundle exec xdep -aif source Gemfile
## Supported Projects
* Ruby: [Bundler](http://bundler.io/v1.15/man/gemfile.5.html), [RubyGems](http://guides.rubygems.org/specification-reference/)
* Node: [npm](https://docs.npmjs.com/getting-started/using-a-package.json)## TODO
* More dependency files
* Specify CSV columns
* Speedup describing package.json