Socket
Book a DemoInstallSign in
Socket

@forthlaw/docx

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forthlaw/docx

## Environment Variables ``` ``` ## Methods ``` generateDocument({ inputFilepath, outputFilepath, dataset }) allDocumentFields({ inputFilepath })

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

@forthlaw/docx

Environment Variables

Methods

generateDocument({ inputFilepath, outputFilepath, dataset })
allDocumentFields({ inputFilepath })

```inputFilepath``` and ```outputFilepath``` are both local filepaths to docx files, which both include the file extension. ```allDocumentFields``` provides a list of fields available in the input docx file, while ```generateDocument``` actually generates the new document with your provided dataset. ```dataset``` is a JS object of data. 

FAQs

Package last updated on 18 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts