untitled notebook

node v8.11.4
version: 1.1.0
endpointsharetweet
const docx = require('docx'); var express = require("@runkit/runkit/express-endpoint/1.0.0"); var app = express(exports); app.get("/", (req, res) => { var doc = new docx.Document(); var paragraph = new docx.Paragraph("Hello World"); doc.addParagraph(paragraph); const expressPacker = new docx.ExpressPacker(doc, res); expressPacker.pack("Document"); // response.end("Hello world!"); })
Created from: https://runkit.com/docs/endpoint
Loading…

no comments

    sign in to comment