Content-Length: 299286 | pFad | http://github.com/zuck/jsdocx

C6 GitHub - zuck/jsdocx: Generate .docx files from JS
Skip to content

zuck/jsdocx

Repository files navigation

jsdocx

jsdocx

Generate .docx files from JS

Node.js CI

Demo

https://zuck.github.io/jsdocx

Install

Node

$ npm install jsdocx

Browser

<script src="https://unpkg.com/jsdocx"></script>

Build

$ git clone https://github.com/zuck/jsdocx.git
$ cd jsdocx
$ npm install
$ npm run build

Test

$ npm test

How to use

import * as jsdocx from 'jsdocx'

// ES5: var jsdocx = require('jsdocx')

let doc = new jsdocx.Document()
let p = doc.addParagraph()
p.addRun().addText('Hello World!')
p.addFormat().addHAlignment().setVal('center')
doc.generate().then((content) => {
  // e.g. saveAs(content, 'hello.docx')
})

Reference

License

The MIT License (MIT)

Copyright (c) Emanuele Bertoldi









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/zuck/jsdocx

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy