Socket
Socket
Sign inDemoInstall

copyright-header

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    copyright-header

Validate, add and update copyright headers automatically, based on the git history.


Version published
Weekly downloads
759
increased by18.41%
Maintainers
1
Install size
182 kB
Created
Weekly downloads
 

Changelog

Source

0.4.6 (2019-08-30)

Bug Fixes

  • Insert header after hashbang line (9814924)

Readme

Source

npm Build Status Maintainability Test Coverage codecov dependencies Status

Validate, add and update copyright headers automatically, based on the git history.

Installation

NPM

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 <name>        Copyright Holder
  --fix                           adds or updates copyright header to files
  --templateId <id>               minimal | apache (default: minimal)
  -i, --include <paths>           include regexp file filter (default: )
  -e, --exclude <paths>           exclude regexp file filter (default: )
  --forceModificationYear <year>  number | "present"
  --excludeCommits <pattern>      ignores commits which message match this pattern
  -V, --version                   output the version number
  -h, --help                      output usage information

License

MIT

Copyright (c) 2019 Marco Stahl

FAQs

Last updated on 30 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc