<commit_before># EasyDD - Easy Drop Zone
This library provides a easy drop zone without losing control of the data.

# Use it
It's easy, just include src/easydd.js and easydd.css in your HTML.

Create an empty div and give it an id.

Initialize is like that:
```javascript
    // Initialize easyDD
    var dd = easydd.create({
        // HTML ID of an existing div to render to
        elementId: 'dd',
        // Centered text inside the div?
        text: 'Drop or Click here!',
        // Max file size in kb
        maxSize: 250,
        // Array of allowed mimetypes
        allowedMimeTypes: ['image/png', 'image/jpeg', 'image/gif'],
        // Callback function see callbackTest above
        callback: callbackTest
    });
```

And to use all these awesome data you receive, add a callback function in the callback parameter.

If you don't like limits, just remove maxSize and allowedMimeTypes, every file will passed now to you callback function.

# Works with
Current Firefox and Chrome. Haven't tested with any other browser yet.

# Contributing?
Please support that library by testing and improving.<commit_msg>Add composer instruction to readme<commit_after># EasyDD - Easy Drop Zone
This library provides a easy drop zone without losing control of the data.

# Use it
It's easy, just include src/easydd.js and easydd.css in your HTML.

Create an empty div and give it an id.

Initialize is like that:
```javascript
    // Initialize easyDD
    var dd = easydd.create({
        // HTML ID of an existing div to render to
        elementId: 'dd',
        // Centered text inside the div?
        text: 'Drop or Click here!',
        // Max file size in kb
        maxSize: 250,
        // Array of allowed mimetypes
        allowedMimeTypes: ['image/png', 'image/jpeg', 'image/gif'],
        // Callback function see callbackTest above
        callback: callbackTest
    });
```

And to use all these awesome data you receive, add a callback function in the callback parameter.

If you don't like limits, just remove maxSize and allowedMimeTypes, every file will be passed now to your callback function.

# Composer
If you like to get the latest version automatically, just add the composer repository.

`composer require cookiekiller/easydd @dev-master`

# Works with
Currently Firefox and Chrome. Haven't tested with any other browser yet.

# Contributing?
Please support that library by testing and improving.
{'fraction_non_alphanumeric': 0.07013201320132013, 'fraction_numerical': 0.0024752475247524753, 'mean_word_length': 2.9819376026272577, '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': '5021773', 'n_tokens_mistral': 651, 'n_tokens_neox': 626, 'n_words': 323}