# plupload-commonjs **Repository Path**: Cweili/plupload-commonjs ## Basic Information - **Project Name**: plupload-commonjs - **Description**: Port of Plupload to CommonJS - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-05-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Plupload CommonJS Port of Plupload to CommonJS. Use [Plupload](http://www.plupload.com/) with [Browserify](http://browserify.org/) or [Webpack](http://webpack.github.io/). See [original README](https://github.com/moxiecode/plupload). # Usage ```js const plupload = require('plupload'); const uploader = new plupload.Uploader({ browse_button: 'browse', // this can be an id of a DOM element or the DOM element itself url: 'upload.php' }); uploader.init(); ``` # Contribution ### plupload.dev.js modify ```js window.plupload = plupload; ``` to ```js module.exports = plupload; ``` ### moxie.js add ```js module.exports = o; ``` after ```js // expose globally exports.mOxie = o; if (!exports.o) { exports.o = o; } ```