<commit_before># script-equal 

[![Build Status](https://travis-ci.org/shinnn/script-equal.svg?branch=master)](https://travis-ci.org/shinnn/script-equal)
[![Build status](https://ci.appveyor.com/api/projects/status/ia3h5bcsy84vgfpc?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/script-equal)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/script-equal.svg)](https://coveralls.io/r/shinnn/script-equal)
[![Dependency Status](https://david-dm.org/shinnn/script-equal.svg)](https://david-dm.org/shinnn/script-equal)
[![devDependency Status](https://david-dm.org/shinnn/script-equal/dev-status.svg)](https://david-dm.org/shinnn/script-equal#info=devDependencies)

Check if one JavaScript code is equivalent to another code, using [UglifyJS]

```javascript
var scriptEqual = require('script-equal');

scriptEqual(
  'window.foo = {a: 0, b: 1};',
  'window["foo"]={\nb: 1,\rna: 0\n};'
); //=> true

scriptEqual(
  'var foo = 12',
  'var foo = 1 + 1 * 14 - 3;;;;;;;;;;;;;;;;;;;'
); //=> true
```

## Installation

[![NPM version](https://badge.fury.io/js/script-equal.svg)](https://www.npmjs.org/package/script-equal)

[Use npm.](https://www.npmjs.org/doc/cli/npm-install.html)

```
npm install script-equal
```
<commit_msg>fix badge URL<commit_after># script-equal 

[![Build Status](https://travis-ci.org/shinnn/script-equal.svg?branch=master)](https://travis-ci.org/shinnn/script-equal)
[![Build status](https://ci.appveyor.com/api/projects/status/6y21wd4dva7cu4rw?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/script-equal)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/script-equal.svg)](https://coveralls.io/r/shinnn/script-equal)
[![Dependency Status](https://david-dm.org/shinnn/script-equal.svg)](https://david-dm.org/shinnn/script-equal)
[![devDependency Status](https://david-dm.org/shinnn/script-equal/dev-status.svg)](https://david-dm.org/shinnn/script-equal#info=devDependencies)

Check if one JavaScript code is equivalent to another code, using [UglifyJS]

```javascript
var scriptEqual = require('script-equal');

scriptEqual(
  'window.foo = {a: 0, b: 1};',
  'window["foo"]={\nb: 1,\rna: 0\n};'
); //=> true

scriptEqual(
  'var foo = 12',
  'var foo = 1 + 1 * 14 - 3;;;;;;;;;;;;;;;;;;;'
); //=> true
```

## Installation

[![NPM version](https://badge.fury.io/js/script-equal.svg)](https://www.npmjs.org/package/script-equal)

[Use npm.](https://www.npmjs.org/doc/cli/npm-install.html)

```
npm install script-equal
```

{'fraction_non_alphanumeric': 0.22552166934189405, 'fraction_numerical': 0.012841091492776886, 'mean_word_length': 5.00722891566265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 26, 'lorem ipsum': 0, 'www.': 4, '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': '4057215', 'n_tokens_mistral': 1013, 'n_tokens_neox': 934, 'n_words': 116}