license-header-check

3.1.0 • Public • Published

License Header Checker

Checks the year in your license header is up to date.

Try it!

npx license-header-check

or

npm i -g license-header-check
license-header-check

The tool will prompt you for all the information it needs. If you want to integrate it into your CI, you can use silent mode which only takes CLI arguments.

Arguments

name default
--silent or -s false
--fix or -f false
--orgName or -o null
--startYear or -s null

Testing

To run unit tests, simply use

npm run test

Snapshots can be updated automatically using the following:

UPDATE_SNAPSHOTS=true npm run test

Future work

Will add all the obvious functionality like checking the license is present, checking other aspects of the header, allowing files to be ignored etc.

Readme

Keywords

none

Package Sidebar

Install

npm i license-header-check

Weekly Downloads

31

Version

3.1.0

License

MPL-2.0

Unpacked Size

124 kB

Total Files

51

Last publish

Collaborators

  • georgegillams