Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
= Premailer README
=== What is this?
For the best HTML e-mail delivery results, CSS should be inline. This is a huge pain and a simple newsletter becomes un-managable very quickly. This script is my solution.
=== Premailer 2.0 is coming
I'm looking for input on a version 2.0 update to Premailer. PLease visit the {Premailer 2.0 Planning Page}[https://github.com/alexdunae/premailer/wiki/Premailer-2.0-Planning] and give me your feedback.
=== Installation
Download the Premailer gem from RubyGems.
sudo gem install premailer
=== Example premailer = Premailer.new('http://example.com/myfile.html', :warn_level => Premailer::Warnings::SAFE)
fout = File.open("output.html", "w") fout.puts premailer.to_inline_css fout.close
fout = File.open("ouput.txt", "w") fout.puts premailer.to_plain_text fout.close
premailer.warnings.each do |w| puts "#{w[:message]} (#{w[:level]}) may not render properly in #{w[:clients]}" end
=== Ruby Compatibility
Premailer is tested on Ruby 1.8.7, Ruby 1.9.2 and Ruby 1.9.3 (preview 1). It also works on REE. JRuby support is close; contributors are welcome. Checkout the latest build status on the {Travis CI dashboard}[http://travis-ci.org/#!/alexdunae/premailer].
=== Premailer-specific CSS
Premailer looks for a few CSS attributes that make working with tables a bit easier.
+-premailer-width+:: Available on table, th and td elements +-premailer-height+:: Available on table, tr, th and td elements +-premailer-cellpadding+:: Available on table elements +-premailer-cellspacing+:: Available on table elements
Each of these CSS declarations will be copied to appropriate element's attribute.
For example
table { -premailer-cellspacing: 5; -premailer-width: 500;}
will result in
=== Contributions
Contributions are most welcome. Premailer was rotting away in a private SVN repository for too long and could use some TLC. Fork and patch to your heart's content. Please don't increment the version numbers, though.
A few areas that are particularly in need of love:
for Outlook
=== Credits and code Thanks to {all the wonderful contributors}[https://github.com/alexdunae/premailer/contributors] for their updates. Thanks to {Greenhood + Company}[http://www.greenhood.com/] for sponsoring some of the 1.5.6 updates, and to {Campaign Monitor}[http://www.campaignmonitor.com] for supporting the web interface. The web interface can be found at {premailer.dialect.ca}[http://premailer.dialect.ca]. The source code can be found on {GitHub}[https://github.com/alexdunae/premailer]. Copyright by Alex Dunae (dunae.ca, e-mail 'code' at the same domain), 2007-2011. See LICENSE.rdoc for license details. |
FAQs
Unknown package
We found that fotonauts-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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.