renovate/lib/util/mask.js

14 lines
210 B
JavaScript
Raw Normal View History

function maskToken(str) {
return str
? [
str.substring(0, 2),
new Array(str.length - 3).join('*'),
str.slice(-2),
].join('')
: str;
}
module.exports = {
maskToken,
};