module.exports = function oneliner(str) {
  return str.replace(/[\r\n\t ]+/g, ' ');
};

module.exports = function oneliner(str) {
  return (str.raw? str.raw[0] : str).replace(/[\r\n\t ]+/g, ' ');
};

Support calling oneliner with raw string
Support calling oneliner with raw string