https://github.com/shybyte/copyright-header
Validate, add and update copyright headers automatically, based on the git history.
https://github.com/shybyte/copyright-header
Last synced: 8 months ago
JSON representation
Validate, add and update copyright headers automatically, based on the git history.
- Host: GitHub
- URL: https://github.com/shybyte/copyright-header
- Owner: shybyte
- License: mit
- Created: 2018-07-27T10:08:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:16:33.000Z (about 3 years ago)
- Last Synced: 2025-04-14T12:54:35.800Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.81 MB
- Stars: 11
- Watchers: 1
- Forks: 9
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Copyright-Header
[](https://www.npmjs.com/package/copyright-header)
[](https://travis-ci.org/shybyte/copyright-header)
[](https://codeclimate.com/github/shybyte/copyright-header/maintainability)
[](https://codeclimate.com/github/shybyte/copyright-header/test_coverage)
[](https://codecov.io/gh/shybyte/copyright-header)
[](https://david-dm.org/shybyte/copyright-header)
Validate, add and update copyright headers automatically, based on the git history.
## Installation
[](https://www.npmjs.com/package/copyright-header)
Global:
npm i -g copyright-header
As local devDependency:
npm i -D copyright-header
# Usage Hints
* Use it inside of a git repo.
* It will only affect files tracked by git.
## Usage Examples (assuming global installation)
Validation:
copyright-header --copyrightHolder "Darth Fader" --include "src" --exclude "src/cli.ts"
Fixing:
copyright-header --fix --copyrightHolder "Darth Fader" --include "src" --exclude "src/cli.ts"
# Options
Usage: copyright-header [options]
Options:
--copyrightHolder Copyright Holder
--fix adds or updates copyright header to files
--templateId minimal | apache | gplv3 (default: minimal)
-i, --include include regexp file filter (default: )
-e, --exclude exclude regexp file filter (default: )
--forceModificationYear number | "present"
--excludeCommits ignores commits which message match this pattern
-V, --version output the version number
-h, --help output usage information
## License
MIT
## Copyright
Copyright (c) 2019 Marco Stahl