1.0.1 • Published 6 years ago

eyeliner v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

node-eyeliner

Native bindings for eyeliner, a CSS inliner for making emails.

Example

import eyeliner from 'eyeliner';

const html = `
  <!doctype html>
  <html>
    <head>
      <style>
        .red {
          color: red;
        }
      </style>
    </head>
    <body>
      <h1 class="red">This is red</h1>
    </body>
  </html>
`;

const inlinedHtml = eyeliner({ html });

console.log(inlinedHtml);
// <!DOCTYPE html><html><head>
//
//       <style></style></head>
//       <body>
//         <h1 class="red" style="color: red;">This is red</h1>
//
//
//   </body></html>

Benchmarks

eyeliner is ultra fast like 3x faster than the competition. Check the benchmark directory to see the comparisons.

1.0.1

6 years ago

1.0.0

6 years ago

0.0.0

6 years ago