Gathering detailed insights and metrics for @borracciablu/banner-cli
Gathering detailed insights and metrics for @borracciablu/banner-cli
CLI tool to add a banner comment to your files.
npm install @borracciablu/banner-cli
Typescript
Module System
Min. Node Version
Node Version
NPM Version
69
Supply Chain
99.3
Quality
82.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
19,602
Last Day
6
Last Week
43
Last Month
104
Last Year
3,484
3 Stars
264 Commits
3 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.32
Package Id
@borracciablu/banner-cli@1.0.32
Unpacked Size
12.97 kB
Size
4.70 kB
File Count
6
NPM Version
10.8.1
Node Version
20.12.1
Publised On
13 Aug 2024
Cumulative downloads
Total Downloads
Last day
50%
6
Compared to previous day
Last week
87%
43
Compared to previous week
Last month
-28.3%
104
Compared to previous month
Last year
-65.9%
3,484
Compared to previous year
CLI tool to add a comment banner to your files.
/*!
* [name] v[tag]
* [homepage]
*
* Copyright (c) [year] [author]
* [license]
*/
By default it will use the values in package.json
.
All values are overridable.
If you are evaluating the use of banners please read:
npm install @borracciablu/banner-cli
Usage: banner-cli [options] [source]
CLI tool to add a banner comment to your files.
Arguments:
source Files to bannerize
Options:
-V, --version output the version number
-n, --name <name> override project name
-t, --tag <tag> override tag version
-s, --site <site> override homepage
-a, --author <author> override author
-y, --year <year> override year
--template <template> override template
-l, --license <license> override license
-d, --debug debug options and args
--dry-run test the command, simulate without actually doing it
-h, --help display help for command
The --template
option allows you to inject tags.
The avalable tags are:
<br> := new line. Like using \n.
[name] := project name
[tag] := project tag version
[site] := project homepage
[author] := project author
[year] := copyright year
[license] := license
[time] := unix timestamp in seconds
Basic:
# add banner to each js file
$ banner-cli 'dist/**/*.js'
# add banner to each css file
# override author, license, site
$ banner-cli 'dist/**/*.css' --author 'Mr Developer' --license MIT --site https://project.js.org
# use template
$ banner-cli 'dist/**/*.css' --template '/*! v[tag] :: [time] */'
Advanced:
// in package.json
// inject next tag
{
"scripts" : {
"banner:patch": "NEXT_TAG=$(semver $npm_package_version -i patch) banner-cli 'dist/*.js' --template='/*! v[tag] :: [time] */' --tag=$NEXT_TAG"
}
}
This package is highly inspired by banner-cli and is currently a superset.
No vulnerabilities found.
No security vulnerabilities found.