Files
docx-js/README.md

80 lines
2.9 KiB
Markdown
Raw Normal View History

2017-03-07 23:10:35 +00:00
<p align="center">
<img alt="clippy the assistant" src="http://i60.tinypic.com/339pvtt.png">
</p>
<p align="center">
2018-08-21 22:29:40 +01:00
Easily generate .docx files with JS/TS. Works for Node and on the Browser.
2017-03-07 23:10:35 +00:00
</p>
2017-03-10 11:27:48 +00:00
2018-02-13 02:08:28 +00:00
---
2017-03-07 23:10:35 +00:00
2018-01-23 01:36:27 +00:00
[![NPM version][npm-image]][npm-url]
[![Downloads per month][downloads-image]][downloads-url]
2018-01-23 01:36:27 +00:00
[![Build Status][travis-image]][travis-url]
[![Dependency Status][daviddm-image]][daviddm-url]
2018-01-23 01:36:27 +00:00
[![Known Vulnerabilities][snky-image]][snky-url]
[![Chat on Gitter][gitter-image]][gitter-url]
2018-04-21 00:04:14 +01:00
[![PRs Welcome][pr-image]][pr-url]
2017-03-07 23:12:08 +00:00
2018-08-09 03:13:16 +01:00
<p align="center">
2018-09-11 19:03:53 +01:00
<img src="https://i.imgur.com/H5FA1Qy.gif" alt="drawing" width="800"/>
2018-08-09 03:13:16 +01:00
</p>
2016-07-04 09:03:25 +01:00
2018-08-09 11:51:27 +01:00
# Demo
2018-02-13 02:08:28 +00:00
2018-09-10 22:44:44 +01:00
## Browser
Here are examples of `docx` being used with basic `HTML/JS` in a browser environment.
* https://codepen.io/anon/pen/dqoVgQ
* https://jsfiddle.net/3xhezb5w/2
## Node
2018-02-13 02:07:56 +00:00
Press `endpoint` on the `RunKit` website:
2017-03-12 21:37:36 +00:00
2018-04-10 21:42:21 +01:00
![RunKit Instructions](https://user-images.githubusercontent.com/2917613/38582539-f84311b6-3d07-11e8-90db-5885ae02c3c4.png)
2018-08-04 04:03:08 +01:00
* https://runkit.com/dolanmiu/docx-demo1 - Simple paragraph and text
* https://runkit.com/dolanmiu/docx-demo2 - Advanced Paragraphs and text
* https://runkit.com/dolanmiu/docx-demo3 - Bullet points
* https://runkit.com/dolanmiu/docx-demo4 - Simple table
* https://runkit.com/dolanmiu/docx-demo5 - Images
* https://runkit.com/dolanmiu/docx-demo6 - Margins
* https://runkit.com/dolanmiu/docx-demo7 - Landscape
2018-09-10 22:44:44 +01:00
* https://runkit.com/dolanmiu/docx-demo8 - Header and Footer
2018-08-04 04:03:08 +01:00
* https://runkit.com/dolanmiu/docx-demo10 - **My CV generated with docx**
2018-02-13 02:07:56 +00:00
2018-09-10 22:44:44 +01:00
More [here](https://docx.js.org/#/examples) and [here](https://github.com/dolanmiu/docx/tree/master/demo)
2018-08-09 11:51:27 +01:00
# How to use & Documentation
2017-03-13 00:54:05 +00:00
2018-08-09 11:52:47 +01:00
Please refer to the [documentation at https://docx.js.org/](https://docx.js.org/) for details on how to use this library, examples and much more!
2016-07-04 09:03:25 +01:00
2018-08-09 11:51:27 +01:00
# Examples
2018-02-13 02:08:28 +00:00
2018-08-09 03:13:16 +01:00
Check the `examples` section in the [documentation](https://docx.js.org/#/examples) and the [demo folder](https://github.com/dolanmiu/docx/tree/master/demo) for examples.
2016-07-04 09:03:25 +01:00
2018-08-09 11:51:27 +01:00
# Contributing
2018-08-04 04:03:08 +01:00
Read the contribution guidelines [here](https://docx.js.org/#/contribution-guidelines).
2018-02-13 02:08:28 +00:00
---
2017-03-10 11:27:48 +00:00
2017-03-11 16:05:20 +00:00
Made with 💖
2017-03-10 11:27:48 +00:00
2016-07-19 19:02:44 +01:00
[npm-image]: https://badge.fury.io/js/docx.svg
[npm-url]: https://npmjs.org/package/docx
[downloads-image]: https://img.shields.io/npm/dm/docx.svg
[downloads-url]: https://npmjs.org/package/docx
2016-07-19 19:02:44 +01:00
[travis-image]: https://travis-ci.org/dolanmiu/docx.svg?branch=master
2016-07-19 18:32:41 +01:00
[travis-url]: https://travis-ci.org/dolanmiu/docx
2016-07-19 19:02:44 +01:00
[daviddm-image]: https://david-dm.org/dolanmiu/docx.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/dolanmiu/docx
[snky-image]: https://snyk.io/test/github/dolanmiu/docx/badge.svg
2017-03-10 11:24:41 +00:00
[snky-url]: https://snyk.io/test/github/dolanmiu/docx
2017-03-13 12:30:22 +00:00
[gitter-image]: https://badges.gitter.im/dolanmiu/docx.svg
[gitter-url]: https://gitter.im/docx-lib/Lobby
2018-04-21 00:04:14 +01:00
[pr-image]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
[pr-url]: http://makeapullrequest.com