<commit_before># Griderator

A simple CSS grid generator module for node.js.

## Usage

Install via ```npm```.

```bash
$ npm install griderator
```

Edit config and then run with

```bash
npm start
```

## Example

**config.json**
```json
{
  "width": "960px",
  "selectors": {
    "container": ".grid",
    "element": ""
  },
  "attribute": "size",
  "columns": 6,
  "file": "css/grid.css"
}
```

```bash
$ npm start

> griderator@1.0.0 start /path/to/griderator
> node app.js

path: css/grid.css
size: 678 bytes
```

Above configuration yields the following CSS:

**css/grid.css**
```css
*
{margin:0;
padding:0;
position:relative;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box}

.grid [size]
{width:960px;
display:inline-block;
*display:inline;
*zoom:1;
vertical-align:top;
overflow:hidden;
*overflow:visible}

.grid [size~="1/2"]
{width:480px}

.grid [size~="1/3"]
{width:320px}

.grid [size~="1/4"]
{width:240px}

.grid [size~="1/5"]
{width:192px}

.grid [size~="1/6"]
{width:160px}

.grid [size~="2/3"]
{width:640px}

.grid [size~="2/5"]
{width:384px}

.grid [size~="3/4"]
{width:720px}

.grid [size~="3/5"]
{width:576px}

.grid [size~="4/5"]
{width:768px}

.grid [size~="4/6"]
{width:640px}

.grid [size~="5/6"]
{width:800px}
```<commit_msg>add todo<commit_after># Griderator

A simple CSS grid generator module for node.js.

## Usage

Install via ```npm```.

```bash
$ npm install griderator
```

Edit config and then run with

```bash
npm start
```

## Example

**config.json**
```json
{
  "width": "960px",
  "selectors": {
    "container": ".grid",
    "element": ""
  },
  "attribute": "size",
  "columns": 6,
  "file": "css/grid.css"
}
```

```bash
$ npm start

> griderator@1.0.0 start /path/to/griderator
> node app.js

path: css/grid.css
size: 678 bytes
```

Above configuration yields the following CSS:

**css/grid.css**
```css
*
{margin:0;
padding:0;
position:relative;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box}

.grid [size]
{width:960px;
display:inline-block;
*display:inline;
*zoom:1;
vertical-align:top;
overflow:hidden;
*overflow:visible}

.grid [size~="1/2"]
{width:480px}

.grid [size~="1/3"]
{width:320px}

.grid [size~="1/4"]
{width:240px}

.grid [size~="1/5"]
{width:192px}

.grid [size~="1/6"]
{width:160px}

.grid [size~="2/3"]
{width:640px}

.grid [size~="2/5"]
{width:384px}

.grid [size~="3/4"]
{width:720px}

.grid [size~="3/5"]
{width:576px}

.grid [size~="4/5"]
{width:768px}

.grid [size~="4/6"]
{width:640px}

.grid [size~="5/6"]
{width:800px}
```

## Todo

* Add optional ```padding``` attribute to config.
{'fraction_non_alphanumeric': 0.22968332697443725, 'fraction_numerical': 0.05799313239221671, 'mean_word_length': 4.531645569620253, 'pattern_counts': {'":': 14, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '843377', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1131, 'n_words': 236}