Checks the year in your license header is up to date.
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.
name | default |
---|---|
--silent or -s |
false |
--fix or -f |
false |
--orgName or -o |
null |
--startYear or -s |
null |
To run unit tests, simply use
npm run test
Snapshots can be updated automatically using the following:
UPDATE_SNAPSHOTS=true npm run test
Will add all the obvious functionality like checking the license is present, checking other aspects of the header, allowing files to be ignored etc.