News for hackers. Stuff that matters.
Re:Xeon – Node.js tool for creating modular, reusable shell ... by seniorsassycat on Monday May 30, 2016 @10:03PM (#11804167)
Woah, this has been on my sort list of projects to build.

Advantages over `source` - require is relative to script file instead of execution `pwd` - a build process can create a single distributable file by cat-ing the required files.

Down the road I'd like to see a `babel` for bash. I think import / export, and functions with arguments would make my time with bash more enjoyable and productive.

As with other tools, `xeon` does a little too much,

  require("http://some.external.domain/awesome_script.sh")
Re:Xeon – Node.js tool for creating modular, reusable shell ... by Hurtak on Tuesday May 31, 2016 @09:22AM (#11806343)
> require is relative to script file instead of execution

  cd "$(dirname "$0")"
can solve that
Re:Xeon – Node.js tool for creating modular, reusable shell ... by eropple on Tuesday May 31, 2016 @12:56AM (#11804676)
Prefixing is pretty trivial, though, and this does a number on portability without providing the kinds of benefits that a more full-featured solution (either of the rake/thor variety or the Chef/Puppet variety, depending on your aims) is likely to give you.

It's a neat project, but I don't see a ton of use for it.

Re:Xeon – Node.js tool for creating modular, reusable shell ... by drkraken on Tuesday May 31, 2016 @01:43AM (#11804847)
glag to see that you got my point, maybe for now its kind like early version, but it will make sense.