Code Monkey home page Code Monkey logo

Yumdocs

Yumdocs is a template engine for Office documents, including Word, PowerPoint and Excel, in JavaScript environments. It merges documents with data, executing statements and expressions found in tags.

Yumdocs Animation

Documentation

Yumdocs is fully documented at https://www.yumdocs.com.

License and Copyright

This project is MIT Licensed like its 3rd party components:

Copyright (c) 2022 - Jacques L. Chereau. All rights reserved.

Quick Start

Check https://www.yumdocs.com for browser instructions. The following targets nodeJS.

Prerequisites

Download and install nodeJS v16+ from https://nodejs.org/.

Installation

Create a project directory, make it your working directory, and run from a terminal window:

npm init -y
npm i @yumdocs/yumdocs

Getting started

  1. Create a Word document named input.docx, type {{field}} and save it in the project directory.

  2. In the same project directory, create a file named index.mjs and copy-paste:

import {YumTemplate} from '@yumdocs/yumdocs';
const t = new YumTemplate();
await t.load('./input.docx');
await t.render({field: 'Anything you see fit'});
await t.saveAs('./output.docx');
  1. Open a terminal window in this project directory and run node index.mjs.

  2. output.docx has been generated and the {{field}} placeholder has been replaced with Anything you see fit.

Yumdocs's Projects

yumdocs icon yumdocs

Yumdocs is a template engine to automate Word, PowerPoint and Excel documents.

yumdocs-cli icon yumdocs-cli

Yumdocs CLI is the command line interface for Yumdocs, to automate Word, PowerPoint, and Excel documents.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.