<commit_before># zepto-modules

> Zepto in CommonJS (and ES6) modules

## Installation

```bash
$ npm install --save zepto-modules
```

## Usage

Configs (recommended):

```javascript
// default config
var $ = require('zepto-modules');
// or
//var $ = require('zepto-modules/_default');

// --------------------------------

// custom config
var $ = require('zepto-modules/_custom');

// --------------------------------

// min config
var $ = require('zepto-modules/_min');

// --------------------------------

// write your own (./my-zepto)

var $ = require('zepto-modules/zepto');

require('zepto-modules/event');
require('zepto-modules/ajax');
require('zepto-modules/form');
require('zepto-modules/ie');

module.exports = $;

// later
var $ = require('./my-zepto');
```

`When-you-need-it` &trade;:

```javascript
var $ = require('zepto-modules/zepto');
var each = require('cmnjs/each');

// these modules (singleton) extend zepto with methods which are available everywhere in your modules
require('zepto-modules/event');
require('zepto-modules/ie'); // kinda important

// rest of module
```

## ES6 version

copy (for now) modules from `./es6` dir to your location and import them

```javascript
// configs
import $ from './es6/_default'
//import $ from './es6/_custom'
//import $ from './es6/_min'

// --------------------------------

// own config (./my-zepto)

import $ from './es6/zepto';

import './es6/event';
import './es6/ajax';
import './es6/form';
import './es6/ie';

export default $;

// later
import $ from './my-zepto'

// --------------------------------

// own module
import $ from './es6/zepto';
var each = require('cmnjs/each');

import './es6/event';
import './es6/ajax';
import './es6/form';
import './es6/ie';
```

## Changelog

[View on github](https://github.com/tomek-f/zepto-modules/blob/master/changelog.md).<commit_msg>README.md<commit_after># zepto-modules

> Zepto in CommonJS (and ES6) modules

## Installation

```bash
$ npm install --save zepto-modules
```

## Usage

Configs (recommended):

```javascript
// default config (zepto, event, ajax, form, ie)
var $ = require('zepto-modules');
// or
//var $ = require('zepto-modules/_default');

// --------------------------------

// custom config (zepto, event, form, ie, detect, data, touch, stack)
var $ = require('zepto-modules/_custom');

// --------------------------------

// min config (zepto, event, ie, stack)
var $ = require('zepto-modules/_min');

// --------------------------------

// write your own (./my-zepto)

var $ = require('zepto-modules/zepto');

require('zepto-modules/event');
require('zepto-modules/ajax');
require('zepto-modules/form');
require('zepto-modules/ie');

module.exports = $;

// later
var $ = require('./my-zepto');
```

`When-you-need-it` &trade;:

```javascript
var $ = require('zepto-modules/zepto');
var each = require('cmnjs/each');

// these modules (singleton) extend zepto with methods which are available everywhere in your modules
require('zepto-modules/event');
require('zepto-modules/ie'); // kinda important

// rest of module
```

You can extend configs:

```javascript
var $ = require('zepto-modules/_custom');

require('zepto-modules/ajax')

$.ajax({
  type: 'GET',
  url: '/projects',
  success: function(data) {
    // do sth
  }
});
```

## ES6 version

copy (for now) modules from `./es6` dir to your location and import them

```javascript
// configs
import $ from './es6/_default'
//import $ from './es6/_custom'
//import $ from './es6/_min'

// --------------------------------

// own config (./my-zepto)

import $ from './es6/zepto';

import './es6/event';
import './es6/ajax';
import './es6/form';
import './es6/ie';

export default $;

// later
import $ from './my-zepto'

// --------------------------------

// own module
import $ from './es6/zepto';
var each = require('cmnjs/each');

import './es6/event';
import './es6/ie';

// rest of module
```

## Changelog

[View on github](https://github.com/tomek-f/zepto-modules/blob/master/changelog.md).
{'fraction_non_alphanumeric': 0.2650361866733217, 'fraction_numerical': 0.007486897928624906, 'mean_word_length': 2.5469026548672566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5656832', 'n_tokens_mistral': 1322, 'n_tokens_neox': 1290, 'n_words': 316}