>
>
>
>     var mkdirp = require('mkdirp');
>

Exactly.  In ES, you would see this:

    import { mkdrip } from "mkdirp";

Python has a somewhat similar module system, and import-renaming is the
exception, not the rule.  Also, I've never heard anyone complain about
having to know the name of a module member.  In fact, specifying the
exported name is essential for tracing out a code base that you're
unfamiliar with.
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to