UNPKG

@yokgs/dyescript-light

Version:

Command Line Interface of lightweight (& pre-published) version of @yokgs/DyeScript

5 lines 197 B
module.exports = (str) => { str = str || '' return str.split(/[\r\n]+/).map(x => x.replace(/,[\s]*/, ',').replace(/^[\s]{1,4}/,'!y ') .split(/\s/).map(d => d.replace(/_/g, ' '))); }