Skip to content

Repository files navigation

markup-generator module

yarn add markup-generator

It's just an HTML file generator

Main reason - we want to generate an HTML email newsletter automatically, so generator must have methods that can help you to save a file.

yarn nx test write-module

Submodule for https://github.com/atherdon/markdown-to-email

https://bobbyhadz.com/blog/typescript-write-to-a-file

import { writeHTML, generateTemplateName } from 'markup-generator'
const content = '<html></html>'; // long html template stored in this variable
const fileName = generateTemplateName('prefix-for-your-generated-file');
writeHTML(fileName, content);

TODO

Arthur Tkachenko articles

About

module for writing content into files

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages