Socket
Socket
Sign inDemoInstall

all-contributors-cli

Package Overview
Dependencies
Maintainers
4
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

all-contributors-cli - npm Package Compare versions

Comparing version 6.13.0 to 6.14.0

6

dist/cli.js

@@ -26,3 +26,7 @@ #!/usr/bin/env node

var defaultRCFile = path.join(cwd, '.all-contributorsrc');
var yargv = yargs.help('help').alias('h', 'help').alias('v', 'version').version().recommendCommands().command('generate', 'Generate the list of contributors').usage('Usage: $0 generate').command('add', 'add a new contributor').usage('Usage: $0 add <username> <contribution>').command('init', 'Prepare the project to be used with this tool').usage('Usage: $0 init').command('check', 'Compares contributors from the repository with the ones credited in .all-contributorsrc').usage('Usage: $0 check').boolean('commit').default('files', ['README.md']).default('contributorsPerLine', 7).default('contributors', []).default('config', defaultRCFile).config('config', function (configPath) {
var yargv = yargs.help('help').alias('h', 'help').alias('v', 'version').version().recommendCommands().command('generate', 'Generate the list of contributors').usage('Usage: $0 generate').command('add', 'add a new contributor').usage('Usage: $0 add <username> <contribution>').command('init', 'Prepare the project to be used with this tool').usage('Usage: $0 init').command('check', 'Compares contributors from the repository with the ones credited in .all-contributorsrc').usage('Usage: $0 check').boolean('commit').default('files', ['README.md']).default('contributorsPerLine', 7).option('contributorsSortAlphabetically', {
type: 'boolean',
default: false,
description: 'Sort the list of contributors alphabetically in the generated list'
}).default('contributors', []).default('config', defaultRCFile).config('config', function (configPath) {
try {

@@ -29,0 +33,0 @@ return util.configFile.readConfig(configPath);

@@ -30,3 +30,7 @@ "use strict";

function generateContributorsList(options, contributors) {
return _.flow(_.map(function (contributor) {
return _.flow(_.sortBy(function (contributor) {
if (options.contributorsSortAlphabetically) {
return contributor.name;
}
}), _.map(function (contributor) {
return formatContributor(options, contributor);

@@ -33,0 +37,0 @@ }), _.chunk(options.contributorsPerLine), _.map(formatLine), _.join('\n </tr>\n <tr>\n '), function (newContent) {

14

package.json
{
"name": "all-contributors-cli",
"version": "6.13.0",
"version": "6.14.0",
"description": "Tool to easily add recognition for new contributors",

@@ -45,10 +45,10 @@ "bin": {

"dependencies": {
"@babel/runtime": "^7.2.0",
"@babel/runtime": "^7.7.6",
"async": "^3.0.1",
"chalk": "^3.0.0",
"didyoumean": "^1.2.1",
"inquirer": "^6.2.1",
"json-fixer": "^1.3.1-0",
"inquirer": "^7.0.4",
"json-fixer": "^1.4.0",
"lodash": "^4.11.2",
"pify": "^4.0.1",
"pify": "^5.0.0",
"request": "^2.72.0",

@@ -61,4 +61,4 @@ "yargs": "^15.0.1"

"git-cz": "^3.0.0",
"kcd-scripts": "^2.0.0",
"nock": "^11.1.0",
"kcd-scripts": "^3.0.0",
"nock": "^12.0.0",
"semantic-release": "^15.13.2"

@@ -65,0 +65,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc