Checks the year in your license header is up to date.
npx license-header-checkor
npm i -g license-header-check
license-header-checkThe 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 testSnapshots can be updated automatically using the following:
UPDATE_SNAPSHOTS=true npm run testWill add all the obvious functionality like checking the license is present, checking other aspects of the header, allowing files to be ignored etc.