npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

anteikudevs-file-upload

v2.0.5

Published

AnteikuDevs FileUpload

Downloads

6

Readme

About The Project

Preview

Plugins that might be useful for a developer -- I think this is it.

Here's why:

  • Your time should be focused on creating something amazing. A project that solves a problem and helps others
  • You shouldn't be doing the same tasks over and over like creating a README from scratch
  • You should implement DRY principles to the rest of your life :smile:

Of course, no one plugin will serve all projects since your needs may be different. So I'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue. Thanks to all the people have contributed to expanding this plugin!

Use the README.md to get started.

Built With

this plugin is made using:

Javascript Css3 Sass Jquery

Getting Started

This plugin is specifically used in html not framework and is made to make it easier for users.

Installation and Usage

This is how to install and use this plugin.

Install from git

  1. Clone the repo

    git clone https://github.com/AnteikuDevs/file-uploads.git
  2. Load css

    <link rel="stylesheet" href="./file-upload/file-upload.min.css"/>
  3. Load script

    <script src="./jquery.min.js"></script>
    <script src="./file-upload/file-upload.min.js"></script>
  4. Use plugin

    let FileData = new FileUpload('#selector');
  5. Use Config

    // while there are only a few custom config
    {
         accept: [ // not required
             "*",// default
             // other extension support
             "mp3"
             "wav"
             "mp4"
             "mkv"
             "gif"
             "jpg"
             "jpeg"
             "png"
             "webp"
             "svg"
             "xlsx"
             "xls"
             "csv"
             "pdf"
             "docx"
             "doc"
             "ppt"
             "pptx"
         ],
         // optional value
         maxSize: 5,// not required
         maxFile: 10,// not required, on MB
         lang: 'en',// no required, default en value is en and id only
         customs: { // not required, for the custom color
             primary: '#FF5900',
             secondary: '#FFF1EA',
             background: '#fff'
         }
     }
  6. Get result data

    // get all data attribute
    FileData.getValue()
    /*
       result: [
          {
             data:"data:image/png;base64,...", // base64 data
             fileType: "image", // type of file
             id: "__fQQeANSCgBuDP", // id generated
             name: "anteikudevs.png", // filename
             size: 258.71, // file size
             type: "image/png" // type of file format
          }
       ]
    */
    
    // get all data base64 only
    FileData.getValue(base64Only = true)
       
    /*
       result: [
          "data:image/png;base64,...",
          "data:image/jpg;base64,...",
       ]
    */
  7. Set current data

    FileData.setValue([
       {
          id: 1,
          data: 'https://../image.jpg'
       }
    ])
  8. Clear data

    // delete all uploaded files or preview files on set value
    FileData.clearValue()
  9. Get deleted data from setValue()

    // this will generate the data id that has been set previously
    FileData.deletedIds
    /*
       result: [
          1,
          2,
       ]
    */

Install from npm

  1. Install from npm

    npm install anteikudevs-file-upload
  2. Use plugin

    let FileData = new FileUpload('#selector');
  3. Use Config

    // while there are only a few custom config
    {
         accept: [ // not required
             "*",// default
             // other extension support
             "mp3"
             "wav"
             "mp4"
             "mkv"
             "gif"
             "jpg"
             "jpeg"
             "png"
             "webp"
             "svg"
             "xlsx"
             "xls"
             "csv"
             "pdf"
             "docx"
             "doc"
             "ppt"
             "pptx"
         ],
         // optional value
         maxSize: 5,// not required
         maxFile: 10,// not required, on MB
         lang: 'en',// no required, default en value is en and id only
         customs: { // not required, for the custom color
             primary: '#FF5900',
             secondary: '#FFF1EA',
             background: '#fff'
         }
     }
  4. Get result data

    // get all data attribute
    FileData.getValue()
    /*
       result: [
          {
             data:"data:image/png;base64,...", // base64 data
             fileType: "image", // type of file
             id: "__fQQeANSCgBuDP", // id generated
             name: "anteikudevs.png", // filename
             size: 258.71, // file size
             type: "image/png" // type of file format
          }
       ]
    */
    
    // get all data base64 only
    FileData.getValue(base64Only = true)
       
    /*
       result: [
          "data:image/png;base64,...",
          "data:image/jpg;base64,...",
       ]
    */
  5. Set current data

    FileData.setValue([
       {
          id: 1,
          data: 'https://../image.jpg'
       }
    ])
  6. Clear data

    // delete all uploaded files or preview files on set value
    FileData.clearValue()
  7. Get deleted data from setValue()

    // this will generate the data id that has been set previously
    FileData.deletedIds
    /*
       result: [
          1,
          2,
       ]
    */

Roadmap

  • [x] Add README.md
  • [x] Upload Files
  • [x] Upgrade Version

See the open issues for a full list of proposed features (and known issues).

Contact

Teguh Sugiarto - @teguhdevs AnteikuDevs - @anteikudevs

Project Link: https://github.com/AnteikuDevs/file-uploads