
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@quintype/copyright-header
Advanced tools
Add or update copyright headers on source code files by scanning directory patterns recursively.
Global:
npm i @quintype/copyright-header -g
As local devDependency:
npm i @quintype/copyright-header --save-dev
List of file extensions supported:
copyright-header -ex
Add or update copyright headers:
copyright-header -i "test/files/**/*" -f test/header.js
Usage: copyright-header [options]
Options:
-f, --license-file <file> copyright license file
-i, --include-path <paths> recursively insert header in all files found in path (allows multiple file patterns separated by space and within double quotes '"')
-e, --exclude-path <paths> skip adding headers for files in the path (allows multiple file patterns separated by comma space and within double quotes '"')
-u, --include-git-untracked include git untracked files, by default git untracked files will be skipped
-s, --git-stage-files add file changes to git staging
-ex, --supported-file-extensions list supported file extensions
-V, --version output the version number
-h, --help display help for command
// ************************************************************************
// * © [2015 - ${new Date().getFullYear()}] Quintype Technologies India Private Limited
// * All Rights Reserved.
// *************************************************************************
'copyright', '(c)', '©'
c, cpp, js, jsx, ts, tsx, go, java, clj, py
copyright-header/src/config/index.ts
under SUPPORTED_LANGUAGES
, similar to the one below {
name: 'Ruby',
fileExtensions: ['rb'],
commentSyntax: {
singleLine: {
start: ['#']
}
}
}
scripts
in package.json
file."copyright-header": "copyright-header -f copyright-header-template.js -i \"src/**/*" -s"
Above script command will add/update copyright header in copyright-header-template.js
file to all source code files under src
directory.
Add the following in husky pre commit hook config in package.json
file,
"husky": {
"hooks": {
"pre-commit": "npm run copyright-header"
}
}
FAQs
To manage copyright headers in source files
We found that @quintype/copyright-header demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 27 open source maintainers collaborating on the project.
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.