UNPKG

cdpc

Version:

child process management

17 lines (12 loc) 268 B
'use strict' const http = require('http') http.get('http://127.0.0.1:3456/', res => { res.on('data', chunk => { console.log(chunk.toString('utf8')) }) res.on('end', () => { console.log(' -- end --') }) }).on('error', err=>{ console.error(err) })