Use the standard
import command to import an API module:
import http from 'http'
The API is organized into a set of Node.js-style modules.
The following modules are not supported in Version 2: