Given HTML, juice will inline your CSS properties into the style attribute. Juice has a number of functions based on whether you want to process a file, HTML string, or a cheerio document, and whether you want the juice to automatically get remote stylesheets, scripts, and image dataURIs to inline. To inline HTML without getting remote resources, using default options. Juice is exposed as a standard module, and from CLI with a smaller set of options.
Features
- HTML emails
- Embedding HTML in 3rd-party websites
- Juice is exposed as a standard module, and from CLI with a smaller set of options
- All juice methods take an options object that can contain any of these properties¿
- Returns string containing inlined HTML. Does not fetch remote resources
- Embed email client support hacks that rely on css selectors into your email templates
License
MIT LicenseFollow Juice
Other Useful Business Software
Build Securely on AWS with Proven Frameworks
Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Juice!