<commit_before>restyle
=======

[![build status](https://secure.travis-ci.org/WebReflection/restyle.png)](http://travis-ci.org/WebReflection/restyle)

Yes, this function has been inspired by [absurd.js](http://krasimir.github.io/absurd/) but it is not exactly the same.
Cool part is, you can use both via browsers or as pre-processor, feel free!

### In A Nutshell
`restyle` is a function able to transform the following:

```javascript
// we are in a browser
// defining some style at runtime
var myStyle = (function(){

  // some function helper
  function getSomeNumber(boundary) {
    return Math.floor(Math.random() * (boundary + 1));
  }

  // something we could reuse all over
  function hex(red, green, blue) {
    return '#'.concat(
      ('0' + red.toString(16)).slice(-2),
      ('0' + green.toString(16)).slice(-2),
      ('0' + blue.toString(16)).slice(-2)
    );<commit_msg>added specs and better intro<commit_after>restyle
=======

[![build status](https://secure.travis-ci.org/WebReflection/restyle.png)](http://travis-ci.org/WebReflection/restyle)

This project has been somehow inspired by [absurd.js](http://krasimir.github.io/absurd/) but it is not exactly the same.

You can check [restyle specifications](https://github.com/WebReflection/restyle/blob/master/specs.md#restyle-object-specifications) or go directly to a [face 2 face against absurd](https://github.com/WebReflection/restyle/blob/master/VS.md#restyle-vs-absurd-by-examples) but the long story short is that no JavaScript library out there fits in about 1KB and feels as natural as `restyle` does in typing CSS.

Good news is, you can choose more now but let's see what's in the menu here ;-)

### In A Nutshell
`restyle` is a function able to transform the following:

```javascript
// we are in a browser
// defining some style at runtime
var myStyle = (function(){

  // some function helper
  function getSomeNumber(boundary) {
    return Math.floor(Math.random() * (boundary + 1));
  }

  // something we could reuse all over
  function hex(red, green, blue) {
    return '#'.concat(
      ('0' + red.toString(16)).slice(-2),
      ('0' + green.toString(16)).slice(-2),
      ('0' + blue.toString(16)).slice(-2)
    );
{'fraction_non_alphanumeric': 0.14499320344358857, 'fraction_numerical': 0.012686905301314002, 'mean_word_length': 3.8634361233480177, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '2509361', 'n_tokens_mistral': 701, 'n_tokens_neox': 668, 'n_words': 217}