Giter Club home page Giter Club logo

shelljs-plugin-authors's Introduction

shelljs-plugin-authors

npm version build status coverage status npm downloads shelljs-plugin

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 <[email protected]>
    39  Gregorio Heaney <[email protected]>
    55  Miller Reichel <[email protected]>
    70  Mervin Graham <[email protected]>
    99  Hallie Paucek <[email protected]>

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:

const shell = require('shelljs')
require('shelljs-plugin-authors')
const authors = shell.authors()
shell.echo(authors.stdout)
/*
Andrew Powlowski <[email protected]>
Gregorio Heaney <[email protected]>
Miller Reichel <[email protected]>
Mervin Graham <[email protected]>
Hallie Paucek <[email protected]>
*/

Or you can use it via the CLI:

$ shelljs-authors
Andrew Powlowski <[email protected]>
Gregorio Heaney <[email protected]>
Miller Reichel <[email protected]>
Mervin Graham <[email protected]>
Hallie Paucek <[email protected]>

If you'd prefer the list be sorted by number of commits per author, pass the -n option:

const shell = require('shelljs')
require('shelljs-plugin-authors')
const authors = shell.authors('-n')
shell.echo(authors.stdout)
/*
Hallie Paucek <[email protected]>
Mervin Graham <[email protected]>
Miller Reichel <[email protected]>
Gregorio Heaney <[email protected]>
Andrew Powlowski <[email protected]>
*/
$ shelljs-authors -n
Hallie Paucek <[email protected]>
Mervin Graham <[email protected]>
Miller Reichel <[email protected]>
Gregorio Heaney <[email protected]>
Andrew Powlowski <[email protected]>

API

Plugin

Options

  • -n - Optional Sort the list by number of commits per author.

Example

shell.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

shelljs-plugin-authors's People

Contributors

renovate-bot avatar renovate[bot] avatar tanem avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

shelljs-plugin-authors's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Lock file maintenance

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-node v4
  • codecov/codecov-action v4
npm
package.json
  • commander ^12.0.0
  • shelljs-exec-proxy ^0.2.1
  • jest 29.7.0
  • prettier 3.2.5
  • shelljs 0.8.5
  • tanem-scripts 7.0.27
  • shelljs ^0.8.3
nvm
.nvmrc

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.