enb-require-or-eval
Version:
Module, which assists in supporting transitional (from 'eval' to 'require') BEM formats.
19 lines (13 loc) • 586 B
Markdown
# enb-require-or-eval
[](https://travis-ci.org/enb-make/enb-require-or-eval)
[](https://ci.appveyor.com/project/SwinX/enb-require-or-eval)
Module, which assists in supporting transitional (from 'eval' to 'require') BEM formats.
Usage:
```js
var requireOrEval = require('enb-require-or-eval');
function someEvalingFunc() {
return requireOrEval('path/to/bemjson.js').then(function (result) {
//process result here
}
}
```