Installations
npm install shelljs-plugin-authors
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
20.12.0
NPM Version
10.5.0
Score
55.5
Supply Chain
92
Quality
75.8
Maintenance
100
Vulnerability
98.2
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Download Statistics
Total Downloads
136,715
Last Day
105
Last Week
506
Last Month
2,260
Last Year
67,763
GitHub Statistics
2 Stars
680 Commits
2 Watching
1 Branches
2 Contributors
Bundle Size
1.02 kB
Minified
578.00 B
Minified + Gzipped
Package Meta Information
Latest Version
2.0.162
Package Id
shelljs-plugin-authors@2.0.162
Unpacked Size
6.35 kB
Size
2.45 kB
File Count
5
NPM Version
10.5.0
Node Version
20.12.0
Publised On
27 Mar 2024
Total Downloads
Cumulative downloads
Total Downloads
136,715
Last day
38.2%
105
Compared to previous day
Last week
8.1%
506
Compared to previous week
Last month
23.5%
2,260
Compared to previous month
Last year
69.7%
67,763
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
1
Dev Dependencies
4
shelljs-plugin-authors
A ShellJS plugin for generating a nicely formatted list of authors.
Usage
Let's assume that we're inside a git repo, and the output of git shortlog -se
gives us something like:
24 Andrew Powlowski <Andrew_Powlowski@yahoo.com>
39 Gregorio Heaney <Gregorio.Heaney43@yahoo.com>
55 Miller Reichel <Miller_Reichel@yahoo.com>
70 Mervin Graham <Mervin69@yahoo.com>
99 Hallie Paucek <Hallie.Paucek@yahoo.com>
We want to generate a nicely formatted list of authors sorted alphabetically by author name. There are two ways to do that with this module, first you can use it as a ShellJS plugin:
1const shell = require('shelljs') 2require('shelljs-plugin-authors') 3const authors = shell.authors() 4shell.echo(authors.stdout) 5/* 6Andrew Powlowski <Andrew_Powlowski@yahoo.com> 7Gregorio Heaney <Gregorio.Heaney43@yahoo.com> 8Miller Reichel <Miller_Reichel@yahoo.com> 9Mervin Graham <Mervin69@yahoo.com> 10Hallie Paucek <Hallie.Paucek@yahoo.com> 11*/
Or you can use it via the CLI:
$ shelljs-authors
Andrew Powlowski <Andrew_Powlowski@yahoo.com>
Gregorio Heaney <Gregorio.Heaney43@yahoo.com>
Miller Reichel <Miller_Reichel@yahoo.com>
Mervin Graham <Mervin69@yahoo.com>
Hallie Paucek <Hallie.Paucek@yahoo.com>
If you'd prefer the list be sorted by number of commits per author, pass the -n
option:
1const shell = require('shelljs') 2require('shelljs-plugin-authors') 3const authors = shell.authors('-n') 4shell.echo(authors.stdout) 5/* 6Hallie Paucek <Hallie.Paucek@yahoo.com> 7Mervin Graham <Mervin69@yahoo.com> 8Miller Reichel <Miller_Reichel@yahoo.com> 9Gregorio Heaney <Gregorio.Heaney43@yahoo.com> 10Andrew Powlowski <Andrew_Powlowski@yahoo.com> 11*/
$ shelljs-authors -n
Hallie Paucek <Hallie.Paucek@yahoo.com>
Mervin Graham <Mervin69@yahoo.com>
Miller Reichel <Miller_Reichel@yahoo.com>
Gregorio Heaney <Gregorio.Heaney43@yahoo.com>
Andrew Powlowski <Andrew_Powlowski@yahoo.com>
API
Plugin
Options
-n
- Optional Sort the list by number of commits per author.
Example
1shell.authors('-n')
CLI
$ shelljs-authors -h
Usage: shelljs-authors [options]
Generate a nicely formatted list of authors
Options:
-V, --version output the version number
-n, --numbered Sort by number of commits per author
-h, --help output usage information
Examples:
$ shelljs-authors
$ shelljs-authors -n
Installation
Plugin
$ npm i -D shelljs shelljs-plugin-authors
CLI
$ npm i -g shelljs shelljs-plugin-authors
License
MIT
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
19 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 existing vulnerabilities detected
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/tanem/shelljs-plugin-authors/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/tanem/shelljs-plugin-authors/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/tanem/shelljs-plugin-authors/ci.yml/master?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
- Info: 1 out of 1 npmCommand dependencies pinned
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Score
5.1
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More