UNPKG

@dotenvx/dotenvx-pro

Version:

Secrets Management – Done Right. 🏆

7 lines (5 loc) 206 B
function cleanseRecoveryPhrase (recoveryPhrase) { // replace newlines and multiple spaces with a single space return recoveryPhrase.replace(/\s+/g, ' ').trim() } module.exports = cleanseRecoveryPhrase