<commit_before>absurd.js
======

Writing your CSS in JavaScript. That's it!

## Installation

	npm install -g absurd

## Usage

Absurd is really simple. It just gets instructions and base on them produces css. So, it's just a matter of personal choice where to use it. You may want to integrate the module directly into your application. If that's not ok for you then you are able to compile the css by using the command line.

### Inline styles

	var Absurd = require("absurd");
	Absurd(function(api) {
		// use the Absurd's api here
	}).compile(function(err, css) {
		// do something with the css
	});

Or you may get only the API.

	var absurd = Absurd();
	var api = absurd.api;
	api.add({ ... }).import("...");
	absurd.compile(function(err, css) {
		// do something with the css
	});

### Puting the styles in an external file

Just create a *.js* file like for example */css/styles.js*. The file should contain the usual nodejs module code.

	module.exports = function(api) {
		// use the Absurd's api here
	}

After that, in your nodejs application */app.js*

	Absurd("./css/styles.js").compile(function(err, css) {
		// ...
	});

### Compiling to file

	var output = "./css/styles.css";
	Absurd("./css/styles.js").compileFile(output, function(err, css) {
		// ...
	});<commit_msg>updating readme<commit_after>absurd.js
======

Writing your CSS in JavaScript. That's it!

## Installation

	npm install -g absurd

## Usage

Absurd is really simple. It just gets instructions and base on them produces css. So, it's just a matter of personal choice where to use it. You may want to integrate the module directly into your application. If that's not ok for you then you are able to compile the css by using the command line.

### Inline styles

	var Absurd = require("absurd");
	Absurd(function(api) {
		// use the Absurd's api here
	}).compile(function(err, css) {
		// do something with the css
	});

Or you may get the API separately.

	var absurd = Absurd();
	var api = absurd.api;
	api.add({ ... }).import("...");
	absurd.compile(function(err, css) {
		// do something with the css
	});

### Puting the styles in an external file

Just create a *.js* file like for example */css/styles.js*. The file should contain the usual nodejs module code.

	module.exports = function(api) {
		// use the Absurd's api here
	}

After that, in your nodejs application */app.js*

	Absurd("./css/styles.js").compile(function(err, css) {
		// ...
	});

### Compiling to file

	var output = "./css/styles.css";
	Absurd("./css/styles.js").compileFile(output, function(err, css) {
		// ...
	});
{'fraction_non_alphanumeric': 0.13477924089852827, 'fraction_numerical': 0.0, 'mean_word_length': 3.3484848484848486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '842171', 'n_tokens_mistral': 830, 'n_tokens_neox': 785, 'n_words': 321}