nscript icon indicating copy to clipboard operation
nscript copied to clipboard

NFR: Babel support

Open mattmccray opened this issue 10 years ago • 1 comments

Perhaps add a flag to transform the script with babel before executing?

It would be nice to be able to use ES6+ features:

#!/usr/bin/env nscript --babelify

export default ( shell, echo, $0 ) => {
  let msg = $0
  echo(`You say, '${ msg }', do you?`)
}

mattmccray avatar Jul 28 '15 02:07 mattmccray

Ah that is a cool idea indeed, gonna see how feasible that is :) (or feel free to PR if you have experience with this)

mweststrate avatar Jul 28 '15 09:07 mweststrate