New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

colibri.js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colibri.js

A light and easy to use AJAX uploader.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

Colibri

A light and easy to use AJAX uploader fully customizable via HTML and CSS with drag & drop support.

Install

NPM

$ npm install --save colibri.js

Standalone

Import CSS:

<link rel="stylesheet" href="colibri.css">

Import JS:

<script src="colibri.js"></script>

Use

Colibri is fully extensible via HTML and CSS and requires just a minimum markup:

 <div class="colibri" id="colibri" data-pic="" data-post="http://localhost:5000/upload">
     <label for="file">
         <div>Choose a picture</div>
     </label>
     <input type="file" name="file" id="file" data-message="Upload in progress...">
 </div>

Then instanciate colibri:

var colibri = new Colibri('#colibri');

Importants elements:

  • class colibri CSS class
  • data-pic if there is already a picture, insert path here (leave empty for the first upload)
  • data-post URL where the post request will be processed
  • label put evering you want in it but don't forget the div (mandatory because of flexbox centering system)
  • input connect input to label (for attribute) and customize uploading message

Contribute

There is already a small express server capable of receiving the upload.

$ npm install
$ npm run dev

Keywords

FAQs

Package last updated on 21 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc