Skip to content

Commit

Permalink
chore: Remove usage of right-pad
Browse files Browse the repository at this point in the history
Replace the usage of the right-pad dependency with "padEnd()".
  • Loading branch information
iainjreid committed Apr 21, 2020
1 parent 0ba097b commit 47b9464
Showing 1 changed file with 1 addition and 2 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

0 comments on commit 47b9464

Please sign in to comment.