code: function getRunAllScripts (cmd) {
    const re = RegExp("(?:npm-run-all" + RE_FLAGS + RE_NAMES + ")+", "gi")
    const cmds = getMatches(re, cmd).map(m =>
      // clean spaces
      m.match.trim().split(" ").filter(x => x))
  
    return unique(flatten(cmds))
  }
docs: handled by npm-run-all module