Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

untitled notebook

node v8.17.0
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…

2 comments

  • posted 4 years ago by timgarciaa
    How to convert base64 string back on frontend to download?
  • posted 10 months ago by 6486b9777002de0012a1c057
    Anonmous

sign in to comment