UNPKG

create-serve

Version:

🍛 Ultralight http server with live reload. [CLI + API]

7 lines (5 loc) 199 B
import { encoding } from '../index.js'; export const showFile = (response, content, contentType) => { response.writeHead(200, { 'Content-Type': contentType }); response.end(content, encoding); };