1.0.4 • Published 2 years ago

mla-gen v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

MLA Gen

The MLA formatted PDF generator.

Installation

This is an NPM package, so it can simply be installed like this:

$ npm install mla-gen

Usage

In NodeJS:

const { Doc, Paragraph } = require("mla-gen");

const doc = new Doc({
	title: "Example PDF",
	user: "Rick Astley",
	instructor: "Dwayne Johnson",
	course: "Dying 101",
	duedate: "22 February 2022"
});

const paragraph1 = new Paragraph(`According to all known laws of aviation...`);
const paragraph2 = new Paragraph(`We've known eachother for so long...`);
const paragraph3 = new Paragraph(`Somebody once told me the world is gonna roll me...`);

doc.addParagraph(paragraph1);
doc.addParagraph(paragraph2);
doc.addParagraph(paragraph3);

doc.export("example.pdf");

Why use MLA Gen?

For those who are just a little too good for Google Docs or Microsoft Word, but won't stoop down to handwriting PDF code, this package is a quick and easy way to create PDF documents formatted in the most popular format.

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago