Using ES6 modules, I know I can alias a named import:
import { foo as bar } from \'my-module\';
And I know I can import a default import:
defaultMember already is an alias - it doesn't need to be the name of the exported function/thing. Just do
defaultMember
import alias from 'my-module';
Alternatively you can do
import {default as alias} from 'my-module';
but that's rather esoteric.