<commit_before># grunt-json-format

> A Grunt Task for formatting JSON files.

[![Build Status](https://img.shields.io/travis/jahed/grunt-json-format.svg)](https://travis-ci.org/jahed/grunt-json-format)
[![NPM Release](https://img.shields.io/npm/dt/grunt-json-format.svg)](https://www.npmjs.com/package/grunt-json-format)

## Getting Started

```sh
# Add the module to your project
npm install grunt-json-format --save-dev
```

```js
// Load the module in your Gruntfile
grunt.loadNpmTasks('grunt-json-format');
```

> Of course, you'll need to be using [Grunt](http://gruntjs.com/)

## Usage

```js
// Configure the task by providing a config.
'json-format': {
    test: {
        options: {
            indent: 4,
            remove: ['_comment']
        },
        files: [
            {
                expand: true,
                cwd: './test',
                src:  ['./json/test-1-*.json'],
                dest: './build/'
            },
            {
                expand: true,
                cwd: './test',
                src:  ['./json/test-2-*.json'],
                dest: './build/'
            }
        ]
    }
}
```

```sh
# Run the task
grunt json-format:test
```

## Options

### indent
Type: `String` or `Number`

Default: `null`

The indentation of the output.

Number indicates the number of whitespaces to use whereas a String will indicate
the character to use (for example `\t` will use tab characters).

By providing `null` or `0`, no indentation will be used and the output will
essentially be minified.

### remove
Type: `Array`

Default: `[]`

The keys to remove from the output.

This is useful for removing comment keys like `_comment`.

## Files

Check the [Grunt Documentation](http://gruntjs.com/configuring-tasks#files-array-format) on how to declare files and how Grunt parses them.

## License

Copyright (c) 2014 <NAME>

Licensed under the [MIT license](LICENSE-MIT).<commit_msg>Fix License link in README<commit_after># grunt-json-format

> A Grunt Task for formatting JSON files.

[![Build Status](https://img.shields.io/travis/jahed/grunt-json-format.svg)](https://travis-ci.org/jahed/grunt-json-format)
[![NPM Release](https://img.shields.io/npm/dt/grunt-json-format.svg)](https://www.npmjs.com/package/grunt-json-format)

## Getting Started

```sh
# Add the module to your project
npm install grunt-json-format --save-dev
```

```js
// Load the module in your Gruntfile
grunt.loadNpmTasks('grunt-json-format');
```

> Of course, you'll need to be using [Grunt](http://gruntjs.com/)

## Usage

```js
// Configure the task by providing a config.
'json-format': {
    test: {
        options: {
            indent: 4,
            remove: ['_comment']
        },
        files: [
            {
                expand: true,
                cwd: './test',
                src:  ['./json/test-1-*.json'],
                dest: './build/'
            },
            {
                expand: true,
                cwd: './test',
                src:  ['./json/test-2-*.json'],
                dest: './build/'
            }
        ]
    }
}
```

```sh
# Run the task
grunt json-format:test
```

## Options

### indent
Type: `String` or `Number`

Default: `null`

The indentation of the output.

Number indicates the number of whitespaces to use whereas a String will indicate
the character to use (for example `\t` will use tab characters).

By providing `null` or `0`, no indentation will be used and the output will
essentially be minified.

### remove
Type: `Array`

Default: `[]`

The keys to remove from the output.

This is useful for removing comment keys like `_comment`.

## Files

Check the [Grunt Documentation](http://gruntjs.com/configuring-tasks#files-array-format) on how to declare files and how Grunt parses them.

## License

See the [LICENSE](LICENSE) file.
{'fraction_non_alphanumeric': 0.14476439790575915, 'fraction_numerical': 0.0031413612565445027, 'mean_word_length': 2.351754385964912, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, 'https://': 8, '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': '3560719', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1186, 'n_words': 358}