UNPKG

sequelize-replace-enum-postgres

Version:

This package provides the methods needed to replace a PostgreSQL ENUM in Sequelize migrations.

10 lines (9 loc) 234 B
/** * Remove white space from string * * @param {string} str - string * @return {string} same string with white space removed */ export function removeWhiteSpace(str) { return str.replace(/\s/g, ' ').replace(/ +(?= )/g, ''); }