use require to import in node js code example Example: how to import in node const http = require('http'); const { router } = require('./routes');