enb-require-or-eval

Module, which assists in supporting transitional (from 'eval' to 'require') BEM formats.

MIT 3 个版本
安装
npm install enb-require-or-eval
yarn add enb-require-or-eval
pnpm add enb-require-or-eval
bun add enb-require-or-eval
README

enb-require-or-eval

Build Status Build status

Module, which assists in supporting transitional (from 'eval' to 'require') BEM formats.

Usage:

var requireOrEval = require('enb-require-or-eval');

function someEvalingFunc() {
	return requireOrEval('path/to/bemjson.js').then(function (result) {
		//process result here
	}
}
版本列表
1.0.2 2015-10-08
1.0.1 2015-09-29
1.0.0 2015-09-23