Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/alveflo/contrabando

Scans node modules for contraband licenses
https://github.com/alveflo/contrabando

contraband-license license-scan node npm

Last synced: 14 days ago
JSON representation

Scans node modules for contraband licenses

Awesome Lists containing this project

README

        




Contrabando



Scans node modules for contraband licenses



Ok now that's not entirely true. What it really does is that it compares the licenses of your dependencies against your own and redflags all licenses that differs. It also gives you a nice html output that you can use to manually see which dependencies your module has and also which licenses that are smuggled in there, which is quite handy in many cases.

## Install
```
$ npm install --global contrabando
```
## Usage
Navigate to your modules entry directory (location of `package.json`) and run
```
$ contrabando
```
Note that it's only the `dependencies` entries that are scanned, not peer/dev/optional/bundled dependencies.
### Example
##### Terminal output
```
> Scanning module 'contrabando'...
┌─────────────┬────────────────────────┬─────────┐
│ Module │ User(s) │ License │
├─────────────┼────────────────────────┼─────────┤
│ cli-table │ contrabando │ Unknown │
├─────────────┼────────────────────────┼─────────┤
│ colors │ cli-table, contrabando │ MIT │
├─────────────┼────────────────────────┼─────────┤
│ jsonfile │ contrabando │ MIT │
├─────────────┼────────────────────────┼─────────┤
│ graceful-fs │ jsonfile │ ISC │
├─────────────┼────────────────────────┼─────────┤
│ mustache │ contrabando │ MIT │
└─────────────┴────────────────────────┴─────────┘
Done! Output saved as .\licenses.html
```
##### Html Output


## License
MIT