0.4.5 • Published 3 years ago

jsdocx v0.4.5

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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

0.4.5

3 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.0

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.3

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.1.10

4 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago