1.0.1 • Published 6 years ago

bs4uploader v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Bootstrap 4 File Uploader

Creates a bootstrap 4 compatible, light-weight file uploader.

WARNING: This project is a work in progress and not in a usable state at the moment.

Usage

// ES2015 module import
import * as bs4uploader from 'bs4-uploader';

// CommonJS module require
var bs4uploader = require('bs4-uploader');
// ...

// ES2015 and CommonJS module use
bs4uploder.bs4uploder(MyDiv);
// ...

// AMD module require
require(['bs4uploader'], function ( bs4uploader ) {
  // ...
  // AMD module use
  bs4uploader.bs4uploader(MyDiv);
  // ...
});

Loading directly with the script tag

<html>
...
<script src="https://unpkg.com/bs4-uploader"></script>
<script>
  // ...
  // Global variable
  bs4uploader.bs4uploader(MyDiv)
  // Property in the window object
  window.bs4uploader.bs4uploader(MyDiv)
  // ...
</script>
</html>