Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

all-contributors-cli

Package Overview
Dependencies
Maintainers
1
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 3.0.0 to 3.0.1

lib/generate/format-badge.js

2

cli.js

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

name: 'command',
message: "What do you want to do?",
message: 'What do you want to do?',
choices: [{

@@ -100,0 +100,0 @@ name: 'Add a new contributor or add a new contribution type',

@@ -25,3 +25,3 @@ 'use strict';

name: 'username',
message: "What is the contributor's GitHub username?",
message: 'What is the contributor\'s GitHub username?',
when: !username

@@ -31,3 +31,3 @@ }, {

name: 'contributions',
message: "What are the contribution types?",
message: 'What are the contribution types?',
when: !contributions,

@@ -34,0 +34,0 @@ choices: contributionChoices(options)

@@ -5,6 +5,6 @@ 'use strict';

var injectContentBetween = require('../util').markdown.injectContentBetween;
var formatBadge = require('./formatBadge');
var formatContributor = require('./formatContributor');
var formatBadge = require('./format-badge');
var formatContributor = require('./format-contributor');
var badgeRegex = /\[\!\[All Contributors\]\([a-zA-Z0-9\-\.\/_\:\?=]+\)\]\(\#\w+\)/;
var badgeRegex = /\[!\[All Contributors\]\([a-zA-Z0-9\-\.\/_:\?=]+\)\]\(#\w+\)/;

@@ -11,0 +11,0 @@ function injectListBetweenTags(newContent) {

@@ -7,3 +7,3 @@ 'use strict';

var prompt = require('./prompt');
var initContent = require('./initContent');
var initContent = require('./init-content');
var configFile = util.configFile;

@@ -10,0 +10,0 @@ var markdown = util.markdown;

@@ -10,7 +10,7 @@ 'use strict';

name: 'projectName',
message: "What's the name of the repository?"
message: 'What\'s the name of the repository?'
}, {
type: 'input',
name: 'projectOwner',
message: "Who is the owner of the repository?"
message: 'Who is the owner of the repository?'
}, {

@@ -24,7 +24,7 @@ type: 'input',

name: 'needBadge',
message: "Do you want a badge tallying the number of contributors?"
message: 'Do you want a badge tallying the number of contributors?'
}, {
type: 'input',
name: 'badgeFile',
message: "In which file should the badge be shown?",
message: 'In which file should the badge be shown?',
when: function (answers) {

@@ -39,3 +39,3 @@ return answers.needBadge;

name: 'imageSize',
message: "How big should the avatars be? (in px)",
message: 'How big should the avatars be? (in px)',
filter: parseInt,

@@ -46,3 +46,3 @@ default: 100

name: 'commit',
message: "Do you want this badge to auto-commit when contributors are added?",
message: 'Do you want this badge to auto-commit when contributors are added?',
default: true

@@ -49,0 +49,0 @@ }];

'use strict';
var path = require('path');
var spawn = require('child_process').spawn;
var _ = require('lodash/fp');

@@ -8,4 +9,2 @@

var spawn = require('child_process').spawn;
function getRemoteOriginData(cb) {

@@ -25,3 +24,3 @@ var output = '';

function parse(originUrl) {
var result = /\:(\w+)\/([A-Za-z0-9-_]+)/.exec(originUrl);
var result = /:(\w+)\/([A-Za-z0-9-_]+)/.exec(originUrl);
return {

@@ -28,0 +27,0 @@ projectOwner: result[1],

'use strict';
module.exports = {
configFile: require('./configFile'),
contributionTypes: require('./contributionTypes'),
configFile: require('./config-file'),
contributionTypes: require('./contribution-types'),
git: require('./git'),
markdown: require('./markdown')
};
{
"name": "all-contributors-cli",
"version": "3.0.0",
"version": "3.0.1",
"description": "Tool to easily add recognition for new contributors",

@@ -9,6 +9,3 @@ "bin": {

"scripts": {
"lint": "eslint cli.js \"lib/**/*.js\" && xo",
"test": "npm run lint && npm run test-unit",
"test-unit": "ava",
"test-unit:w": "ava --watch"
"test": "xo && nyc ava"
},

@@ -32,11 +29,10 @@ "repository": {

"inquirer": "^0.12.0",
"lodash": "^4.6.1",
"request": "^2.69.0",
"yargs": "^4.3.2"
"lodash": "^4.11.2",
"request": "^2.72.0",
"yargs": "^4.7.0"
},
"devDependencies": {
"ava": "^0.14.0",
"eslint": "^2.4.0",
"eslint-plugin-ava": "^1.2.1",
"xo": "^0.13.0"
"nyc": "^6.4.2",
"xo": "^0.15.0"
},

@@ -48,2 +44,8 @@ "ava": {

},
"files": [
"cli.js",
"lib",
"!lib/**/*.test.js",
"!lib/**/fixtures"
],
"xo": {

@@ -50,0 +52,0 @@ "space": 2,

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