cjs2iife
Convert all commonjs files to one immediately-invoked-function-expression file
Background
When you wanna develop a library, but you don't need to support AMD
or CommonJS
or CMD
or UMD
in production environment. Finnaly you only need a combined iife
file to deploy. Howerver, the library code base is not small, you still need a module style to manage your source code to avoid your code in mess. This tool is for it, you can using CommonJS
module style to write your code, and use this tool to pack to one iife
file.
Usage
Install
npm install cjs2iife
Example
var cjs2iife = ;var result = ;