<commit_before># Juice ![](http://i.imgur.com/jN8Ht.gif)

Given HTML and CSS, juice will inline your properties into the `style`
attribute.

## How to use

```js
var juice = require('juice');
juice('<p>Test</p>', 'p { color: red; }')
// '<p style="color: red;">Test</p>'
```

## What is this useful for ?

- HTML emails. For a comprehensive list of supported selectors see
[here](http://www.campaignmonitor.com/css/)
- Embedding HTML in 3rd-party websites.

## Credits

(The MIT License)
<commit_msg>Added note regarding node-email-templates to README<commit_after># Juice ![](http://i.imgur.com/jN8Ht.gif)

Given HTML and CSS, juice will inline your properties into the `style`
attribute.

## How to use

```js
var juice = require('juice');
juice('<p>Test</p>', 'p { color: red; }')
// '<p style="color: red;">Test</p>'
```

## What is this useful for ?

- HTML emails. For a comprehensive list of supported selectors see
[here](http://www.campaignmonitor.com/css/)
- Embedding HTML in 3rd-party websites.

## Example usage

For rendering beautiful emails with [ejs][1] and [juice][2], check out [node-email-templates][3].

[1]: https://github.com/visionmedia/ejs
[2]: https://github.com/LearnBoost/juice
[3]: https://github.com/niftylettuce/node-email-templates

## Credits

(The MIT License)

{'fraction_non_alphanumeric': 0.1722007722007722, 'fraction_numerical': 0.007722007722007722, 'mean_word_length': 4.377593360995851, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5636662', 'n_tokens_mistral': 454, 'n_tokens_neox': 435, 'n_words': 134}