<commit_before># parker-loader

[![Build Status](https://travis-ci.org/tanem/parker-loader.png?branch=master)](https://travis-ci.org/tanem/parker-loader)
[![NPM version](https://badge.fury.io/js/parker-loader.svg)](http://badge.fury.io/js/parker-loader)

Output a stylesheet analysis report using [parker](https://github.com/katiefenn/parker) and [webpack](https://github.com/webpack/webpack).

## Installation

```
$ npm i parker-loader -D
```

__Note:__ [npm](https://npmjs.com) will deprecate [peerDependencies](https://github.com/npm/npm/issues/6565) on the next major release, so required dependencies like parker and webpack will have to be installed manually.

## Usage

```js
var css = require('raw!parker!./file.css');
```

Or within the webpack config:

```js
module: {
  loaders: [{
    test: /\.css$/,
    loader: 'raw!parker?format=md&report=stylesheet-analysis.md'
  }]
}
```

## Options

### `format`

Specify the report format (defaults to markdown). See the [parker usage docs](https://github.com/katiefenn/parker/tree/master/docs/usage) for other format options.

```js
loaders: [
  {
    ...
    loader: 'raw!parker?format=csv'
  }
]
```

### `report`

Specify the report filename (required).

```js
loaders: [
  {
    ...
    loader: 'raw!parker?report=stylesheet-analysis.md'
  }
]
```

## Tests

```
$ npm test
```

## Credits

* [autoprefixer-loader](https://github.com/passy/autoprefixer-loader) for README format hints.<commit_msg>Tweak README<commit_after># parker-loader

[![Build Status](https://travis-ci.org/tanem/parker-loader.png?branch=master)](https://travis-ci.org/tanem/parker-loader)
[![NPM version](https://badge.fury.io/js/parker-loader.svg)](http://badge.fury.io/js/parker-loader)

Output a stylesheet analysis report using [parker](https://github.com/katiefenn/parker) and [webpack](https://github.com/webpack/webpack).

## Installation

```
$ npm i parker-loader -D
```

__Note:__ [npm](https://npmjs.com) will deprecate [peerDependencies](https://github.com/npm/npm/issues/6565) on the next major release, so required dependencies like parker and webpack will have to be installed manually.

## Usage

```js
var css = require('raw!parker!./styles.css');
```

Or within the webpack config:

```js
module: {
  loaders: [{
    test: /styles\.css$/,
    loader: 'raw!parker?format=md&report=stylesheet-analysis.md'
  }]
}
```

## Options

### `format`

Specify the report format (defaults to markdown). See the [parker usage docs](https://github.com/katiefenn/parker/tree/master/docs/usage) for other format options.

```js
loaders: [
  {
    ...
    loader: 'raw!parker?format=csv'
  }
]
```

### `report`

Specify the report filename (required).

```js
loaders: [
  {
    ...
    loader: 'raw!parker?report=stylesheet-analysis.md'
  }
]
```

## Tests

```
$ npm test
```

## Credits

* [autoprefixer-loader](https://github.com/passy/autoprefixer-loader) for README format hints.
{'fraction_non_alphanumeric': 0.1815690304898938, 'fraction_numerical': 0.0027406646111682084, 'mean_word_length': 4.177304964539007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, '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': '3646679', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1029, 'n_words': 202}