News for hackers. Stuff that matters.
Re:Adding JavaScript modules to the web platform by CraigJPerry on Wednesday April 13, 2016 @02:51PM (#11491082)
>> This allows you to do really crazy things like define modules dynamically

In python there's a library called "sh" and it has a novelty interface:

    from sh import ls, pwd, my_unique_command
    print ls('/dir')
    ...
I wondered (not enough to check right enough) if something similar could be done in JS. Although due to the async nature of such a call, it might not end up looking so familiar with JS in practice i guess.
Re:Adding JavaScript modules to the web platform by redka on Wednesday April 13, 2016 @03:12PM (#11491266)
https://github.com/shelljs/shelljs Edit: \/ ahh, yes you're right!
Re:Adding JavaScript modules to the web platform by foota on Wednesday April 13, 2016 @03:45PM (#11491545)
I think if I'm grokking correctly that you can import "anything" from sh, without it having to be explicitly in the package.