Would you like to clone this notebook?

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

Cancel

Docx-Tester

node v10.24.1
version: 2.0.0
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
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(undefined, { orientation: "landscape", }); var paragraph = new docx.Paragraph("Hello World"); console.log("Test"); doc.addParagraph(paragraph); const expressPacker = new docx.ExpressPacker(doc, res); expressPacker.pack("Document"); });
Loading…

no comments

    sign in to comment