docx

Easily generate and modify .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

MIT License

Downloads
690.7K
Stars
4K
Committers
104

Bot releases are visible (Hide)

docx - 4.0.0

Published by dolanmiu about 6 years ago

docx - 3.5.0

Published by dolanmiu over 6 years ago

docx - 3.2.0

Published by dolanmiu over 6 years ago

3.2.0 brings huge features, notibily:

Image support
Footer and header support
Landscape + Portrait mode
Ability to change margins

Check out the demos!

Massive internal overhaul of project to make it easier to maintain, and easier to add new features.

Strict use of Prettier formatting
/src folder rather than /ts
Using webpack for building rather than tsc
Tests run all demos as part of the checks

docx - 3.1.0

Published by dolanmiu almost 7 years ago

Add PDF exporting support!

now when you create an exporter, you can use .packPdf() to export it as a PDF document instead:

var exporter = new docx.LocalPacker(doc);
exporter.packPdf('My Document');
docx - 3.0.1

Published by dolanmiu about 7 years ago

docx - 3.0.0

Published by dolanmiu about 7 years ago

docx - 2.1.1

Published by dolanmiu over 7 years ago

Made XmlableObject non-ambient, which means the tsc compiler is able to include it in the typings

docx - 2.1.0

Published by dolanmiu over 7 years ago

TypeScript definitions are now avaliable by default!

This means, if you are in a TypeScript project, you get autocomplete and all that good stuff without any extra configuration or packages.

Sorry that this wasn't avaliable earlier!

docx - 2.0.1

Published by dolanmiu over 7 years ago

docx - 2.0.0

Published by dolanmiu over 7 years ago

Breaking changes:

addTextRun is now addRun because soon you will be able to add picture runs. I found it a bit pointless having a new method for each new run addTextRun, addPictureRun etc. So instead, there will be one method which take any form of run!

docx - 1.2.1

Published by dolanmiu over 7 years ago

Minor package.json update

docx - 1.2.0

Published by dolanmiu over 7 years ago

Added numberings
Font support

docx - 1.0.1

Published by dolanmiu over 7 years ago

Minor fixes

Made CI pass