carbonize

1.0.2 • Public • Published

Carbonize - Generate DOCX Documents from Templates

Carbonize is a command-line tool that simplifies the process of generating DOCX documents from templates using the Carbone library.

Installation

To install Carbonize globally, use npm:

npm install -g carbonize

Usage

You can use Carbonize to create DOCX documents by providing it with a template, JSON data, and specifying the output file. Here's the basic usage:

carbonize [input-path] [json-data] [output-path]
  • [input-path] is the path to your DOCX template file.
  • [json-data] is the JSON data that will be used to fill in the template.
  • [output-path] is the path where the generated DOCX document will be saved.

Tests

npm run test

Example

Let's say you have a template file called template.docx and JSON data like this:

{
  "name": "John Doe",
  "age": 30,
  "city": "New York"
}

You can generate a DOCX document with the following command:

carbonize template.docx '{"name": "John Doe", "age": 30, "city": "New York"}' output.pdf

This will produce output.pdf based on the template.docx file, filling in the placeholders with the provided JSON data.

Features

  • Easy generation of DOCX documents from templates.
  • Customizable templates using Carbone's syntax.
  • Supports automation and integration into your workflows.

Contributing

If you'd like to contribute to Carbonize, please check out our contribution guidelines.

License

Carbonize is licensed under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i carbonize

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

9.03 kB

Total Files

6

Last publish

Collaborators

  • chikore