1.0.0 • Published 1 year ago

fileupd v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

FileUploader

A simple file uploader package for JavaScript applications.

Installation

You can install the package via npm:

npm install fileuploader

Usage

To use the file uploader package, simply import the initFileUploader function into your JavaScript code and call it with the ID of the target element where you want to render the file uploader:

import { initFileUploader } from 'fileuploader';

// Initialize the file uploader
initFileUploader('file-uploader-container');

Features

  • Supports uploading files to a server
  • Easy integration with JavaScript applications
  • Customizable upload behavior and UI

Example

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>File Uploader Example</title>
</head>
<body>
  <div id="file-uploader-container"></div>

  <script src="app.js"></script>
</body>
</html>
// app.js
import { initFileUploader } from 'fileuploader';

// Initialize the file uploader
initFileUploader('file-uploader-container');

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

1.0.0

1 year ago