Jul 5, 2016 Node.js v4.x HTTP Server One Liner One liner to create a Node.js HTTP server: 1require('http').createServer((req, res) => res.end('OK')).listen(3000); Also see the previous one liners for older Node.js versions.