Skip to content

Check the dependencies of your project conform to a set of licences

License

Notifications You must be signed in to change notification settings

SykesCottages/licence-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Licence Check

This is a package which allows checking that all of the dependencies of a project conform to an agreed set of licences.

Guide

To run a basic check with no options install the checker

composer require sykescottages/licence-check

to run

./vendor/bin/licence-check

This will by default check the current working directories composer for valid licences.

To customise the licences accepted pass -l / --licence as a command line option eg

./vendor/bin/licence-check --licence YourLicence

or to pass a file containing valid licences

./vendor/bin/licence-check --licenceFile file.txt

You can ignore certain packages with the -i / --ignoreFile flag to pass a file or --ignore for a single package

NPM

This can also check NPM, you will need to install the licence check (globally to make it easier)

sudo npm install -g license-report

then call the same binary as above with a seperate flag

./vendor/bin/licence-check --type Npm

The flags documented above work in the same way

Running from any directory

To run from any directory you need to provide input on STDIN. This is expected to be JSON for composer and csv for NPM

About

Check the dependencies of your project conform to a set of licences

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages