Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Premailer is a JavaScript library which reads a HTML document, creates a tree data structure to represent the DOM and "inlines" any extracted CSS rules found in the file. © 2020 Maria Koudounakou • Code on < https://github.com/mkoudounakou/premailer >
The following is a guide to 'Premailer', developed by Maria Koudounakou.
Type the following into command line: > npm install premailer
Example 'index.js': const Premailer = require('premailer');
Example 'index.js': const premailer = new Premailer('./example/input.html', './example/output/', { makeLogFiles: true }); premailer.premailMyEmail();
File structure created: ./example/output/premailer-log-files/ ./example/output/premailer-log-files/premailer-node-tree-creation-log.txt ./example/output/premailer-log-files/premailer-result-log.html ./example/output/premailer-log-files/premailer-result-UI.html ./example/output/premailer-result-file.html
Premailer takes three arguments in its constructor: - dirInputFile: (typeof String) the relative path of the HTML file you wish to convert. - dirOutputFile: (typeof String) the relative path of the directory you wish Premailer to write the output file(s) to. - premailerOptions: (typeof Object) Optional Argument with properties to customise how Premailer operates.
To begin premailing, you need only call the class method 'premailMyEmail()' for your instance of Premailer.
Valid 'premailerOptions' Object Properties (typeof Boolean) are listed below: - makeXHTMLcompatible: Conforms all self-closing tags to the format for compatibility with XHTML applications. - makeLogFiles: In addition to the default output file, Premailer will create further log files showing your file at various conversion stages.
Premailer is a JavaScript library which: 1. reads a HTML document 2. creates a tree data structure to represent the DOM 3. "inlines" any extracted CSS rules found in the file
The code can be found at: https://github.com/mkoudounakou/premailer The package is published to: https://www.npmjs.com/package/premailer
Keywords: "Premailer", "Inline", "CSS", "Outlook", "Compatible", "Email", "HTML", "File", "Conversion", "Mail", "Styles", "Inliner".
© 2020 Maria Koudounakou, All rights reserved.
FAQs
Premailer is a JavaScript library which reads a HTML document, creates a tree data structure to represent the DOM and "inlines" any extracted CSS rules found in the file. © 2020 Maria Koudounakou • Code on < https://github.com/mkoudounakou/premailer >
We found that premailer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.