const path = require('path') in ES6 code example Example: import path nodejs const path = require('path')