Skip to content

Commit

Permalink
Merge pull request #120 from iainjreid/remove-right-pad
Browse files Browse the repository at this point in the history
Remove right pad
  • Loading branch information
LinusU committed Apr 22, 2020
2 parents e7bd546 + 47b9464 commit 861b361
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions engine.js
Expand Up @@ -3,7 +3,6 @@
var wrap = require('word-wrap');
var map = require('lodash.map');
var longest = require('longest');
var rightPad = require('right-pad');
var chalk = require('chalk');

var filter = function(array) {
Expand Down Expand Up @@ -43,7 +42,7 @@ module.exports = function(options) {
var length = longest(Object.keys(types)).length + 1;
var choices = map(types, function(type, key) {
return {
name: rightPad(key + ':', length) + ' ' + type.description,
name: (key + ':').padEnd(length) + ' ' + type.description,
value: key
};
});
Expand Down
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Expand Up @@ -26,7 +26,6 @@
"conventional-commit-types": "^3.0.0",
"lodash.map": "^4.5.1",
"longest": "^2.0.1",
"right-pad": "^1.0.1",
"word-wrap": "^1.0.3"
},
"devDependencies": {
Expand Down

0 comments on commit 861b361

Please sign in to comment.