Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blazingdocs/blazingdocs-node
BlazingDocs Node.js client
https://github.com/blazingdocs/blazingdocs-node
api csv doc document-generation documents docx json mail-merge odt pdf reports templates xml
Last synced: 21 days ago
JSON representation
BlazingDocs Node.js client
- Host: GitHub
- URL: https://github.com/blazingdocs/blazingdocs-node
- Owner: blazingdocs
- License: mit
- Created: 2021-08-09T14:33:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-07T08:05:47.000Z (about 3 years ago)
- Last Synced: 2024-12-14T20:12:58.862Z (about 2 months ago)
- Topics: api, csv, doc, document-generation, documents, docx, json, mail-merge, odt, pdf, reports, templates, xml
- Language: TypeScript
- Homepage: https://blazingdocs.com
- Size: 130 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BlazingDocs Node.js client
High-performance document generation API. Generate documents and reports from СSV, JSON, XML with 99,9% uptime and 24/7 monitoring.## Installation
Using npm:
```
$ npm install blazingdocs
```## Integration basics
### Setup
You can get your API Key at https://app.blazingdocs.com
```javascript
const client = BlazingClient('API-KEY')
```### Getting account info
```javascript
const account = await client.getAccount()
```### Getting merge templates list
```javascript
const templates = await client.getTemplates()
```### Getting usage info
```javascript
const usage = await client.getUsage()
```### Executing merge
```javascript
const client = BlazingClient('API-KEY')const data = readFileSync(__dirname + '/PO-Template-Array.json', 'utf8');
const parameters: MergeParameters = new MergeParameters();
parameters.dataSourceType = DataSourceType.Json; // data in json format
parameters.sequence = true; // data is array
parameters.strict = true; // keep json typesconst readStream = createReadStream(__dirname + '/PO-Template-Array.docx');
const template: FormFile = new FormFile("PO-Template-Array.docx", readStream);const operation = await client.mergeWithFormFile(data, "output.pdf", parameters, template)
```## Documentation
See more details here https://docs.blazingdocs.com