mirror of
https://github.com/dolanmiu/docx.git
synced 2026-11-30 16:47:55 +01:00
Update documentation
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@
|
||||
|
||||
* API
|
||||
|
||||
* [Documentation](/api)
|
||||
* [Documentation](https://docx.js.org/api/)
|
||||
|
||||
* Usage
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
* [Packers](usage/packers.md)
|
||||
|
||||
* [Examples](usage/examples.md)
|
||||
* [Examples](examples.md)
|
||||
|
||||
* [Contribution Guidelines](contribution-guidelines.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
# Examples
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Packers
|
||||
|
||||
I used the express exporter in my [website](http://www.dolan.bio). It's very useful, and is the preferred way if you want to make a downloadable file for a visitor. it is much better than generating a physical file on the server, and then passing a download link to that file.
|
||||
> Packers are the way in which `docx` turns your code into `.docx` format. It is completely decoupled from the `docx.Document`.
|
||||
|
||||
## File System Packer
|
||||
|
||||
@@ -37,7 +37,9 @@ const buffer = exporter.pack();
|
||||
|
||||
## Express Packer
|
||||
|
||||
Simply use the exporter, and pass in the necessary parameters:
|
||||
I used the express exporter in my [website](http://www.dolan.bio).
|
||||
|
||||
Pass in the necessary parameters:
|
||||
|
||||
```js
|
||||
const docx = require("docx");
|
||||
|
||||
Reference in New Issue
Block a user