Skip to content

Commit 47b9464

Browse files
committed
chore: Remove usage of right-pad
Replace the usage of the right-pad dependency with "padEnd()".
1 parent 0ba097b commit 47b9464

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

engine.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
var wrap = require('word-wrap');
44
var map = require('lodash.map');
55
var longest = require('longest');
6-
var rightPad = require('right-pad');
76
var chalk = require('chalk');
87

98
var filter = function(array) {
@@ -43,7 +42,7 @@ module.exports = function(options) {
4342
var length = longest(Object.keys(types)).length + 1;
4443
var choices = map(types, function(type, key) {
4544
return {
46-
name: rightPad(key + ':', length) + ' ' + type.description,
45+
name: (key + ':').padEnd(length) + ' ' + type.description,
4746
value: key
4847
};
4948
});

0 commit comments

Comments
 (0)