Creating a container
Import Container and create one with new:
import { Container } from 'esp-js-di';
const container = new Container();
An app usually has one root container. To scope a set of objects, create a child container from it.
The default export
You can also import the default export.
It holds Container, RegistrationModifier, ResolverContext, EspDiConsts, and ResolverNames:
import espDi from 'esp-js-di';
const container = new espDi.Container();