<commit_before>[![Coveralls – test coverage
](https://img.shields.io/coveralls/tomekwi/isomorphic-ensure.svg?style=flat-square)
](https://coveralls.io/r/tomekwi/isomorphic-ensure)
 [![Travis – build status
](https://img.shields.io/travis/tomekwi/isomorphic-ensure/master.svg?style=flat-square)
](https://travis-ci.org/tomekwi/isomorphic-ensure)
 [![David – status of dependencies
](https://img.shields.io/david/tomekwi/isomorphic-ensure.svg?style=flat-square)
](https://david-dm.org/tomekwi/isomorphic-ensure)
 [![Code style: airbnb
](https://img.shields.io/badge/code%20style-airbnb-blue.svg?style=flat-square)
](https://github.com/airbnb/javascript)
 [![Stability: experimental
](https://img.shields.io/badge/stability-experimental-red.svg?style=flat-square)
](https://nodejs.org/api/documentation.html#documentation_stability_index)




isomorphic-ensure
=================

**Use *[webpack][]* loaders seamlessly – in *node* or *iojs* as well as in the browser.**

And that almost for free. The whole thing weighs just around x00 bytes minzipped.

[webpack]:  https://github.com/webpack/webpack  "webpack/webpack"

**⚠ Heads up!** Work in progress.




Installation
------------

```sh
$ npm install isomorphic-ensure
```




Usage
-----

**1) Wire things up.**

```js
if (!require.ensure) require.ensure = require('isomorphic-ensure')({
  loaders: {raw: require('raw-loader')},
});
```<commit_msg>Remove unstability warnings<commit_after>[![Coveralls – test coverage
](https://img.shields.io/coveralls/tomekwi/isomorphic-ensure.svg?style=flat-square)
](https://coveralls.io/r/tomekwi/isomorphic-ensure)
 [![Travis – build status
](https://img.shields.io/travis/tomekwi/isomorphic-ensure/master.svg?style=flat-square)
](https://travis-ci.org/tomekwi/isomorphic-ensure)
 [![David – status of dependencies
](https://img.shields.io/david/tomekwi/isomorphic-ensure.svg?style=flat-square)
](https://david-dm.org/tomekwi/isomorphic-ensure)
 [![Code style: airbnb
](https://img.shields.io/badge/code%20style-airbnb-blue.svg?style=flat-square)
](https://github.com/airbnb/javascript)




isomorphic-ensure
=================

**Use *[webpack][]* loaders seamlessly – in *node* or *iojs* as well as in the browser.**

And that almost for free. The whole thing weighs just around x00 bytes minzipped.

[webpack]:  https://github.com/webpack/webpack  "webpack/webpack"




Installation
------------

```sh
$ npm install isomorphic-ensure
```




Usage
-----

**1) Wire things up.**

```js
if (!require.ensure) require.ensure = require('isomorphic-ensure')({
  loaders: {raw: require('raw-loader')},
});
```
{'fraction_non_alphanumeric': 0.1979206777050443, 'fraction_numerical': 0.003850596842510589, 'mean_word_length': 4.825112107623318, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, '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': '3035245', 'n_tokens_mistral': 943, 'n_tokens_neox': 896, 'n_words': 162}