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

ftqueue

v1.0.0

Published

FTQueue – A queue, File uploader Javascript Library.

Downloads

5

Readme

FTQueue npm version

FTQueue – A queue, listed File uploader Javascript Library.

Notice

Released 1.0.0 Alpha version

We inform that no user should implement it in personal project. Because this is the alpha version 1.0.0-a of FTQueue, it may have bugs.

But the app can be added to this normal project or its methods can be checked. If you feel that something needs to be improved then you can raise an issue on github. Your advice will be precious to me.

If you feel that this library is perfect for your project or application then you can add it to your project without worrying that it. will prove effective for your project or application.

npm install

# install locally (recomended)
npm install ftqueue --save

configuration

const ftqueue = new FTQueue();
ftqueue.add({
	url: "http://example.com",
	accept: "image/*, video/mp4",
	beforeSend: ƒ callback()
	username: "",
	password: "",
	timeout: 5000,
	headers: {},
	mimeType: ,
	data: {},
	sync: true,
	async: true,
	files: {FileList {}},
	loadstart: ƒ start(),
	success: ƒ success(),
	error: ƒ error(),
	loadend: ƒ end(),
	loaded: ƒ loaded(),
	progress: ƒ progress(),
	complete: ƒ complete()
});

(Recomended) properties

ftqueue.add({
	url: "http://example.com",
	beforeSend: ƒ callback()
	data: {},
	files: {FileList {}},
	loadstart: ƒ start(),
	success: ƒ success(),
	error: ƒ error(),
	loadend: ƒ end(),
	loaded: ƒ loaded(),
	progress: ƒ progress()
});

Required properties

ftqueue.add({
	url: "http://example.com",
	files: {FileList {}},
	progress: ƒ progress(),
	error: ƒ error(),
	success: ƒ success(),
});
  • url – A string or any other object with a stringifier — including a URL object — that provides the URL of the resource to send the request to.
  • accept – The accept method value is a string that defines the file types the file input should accept.
  • beforeSend – Will fire before sending the request.
  • username – The optional user name to use for authentication purposes; by default, this is the null value.
  • password – The optional password to use for authentication purposes; by default, this is the null value.
  • timeout – The timeout event is fired when progression is terminated due to preset time expiring.
  • headers
  • mimeType – A string specifying the MIME type to use instead of the one specified by the server. If the server doesn't specify a type, XMLHttpRequest assumes "video/mp4".
  • data – A plain html or json data Like user=foo&[email protected] or {user: "foo", email: "[email protected]"}
  • sync – An optional Boolean parameter, defaulting to true,
  • async – An optional Boolean parameter, defaulting to true, indicating whether or not to perform the operation asynchronously. If this value is false, the send() method does not return until the response is received. If true.
  • files – A valid FileList object
  • loadstart – The upload has begun.
  • success – The upload, xhr completed successfully.
  • error – The upload failed or xhr request failed due to an error.
  • loadend – to this event, one of load, error, abort, or timeout will already have been delivered to indicate why the upload ended.
  • loaded – The upload completed successfully.
  • progress – Periodically delivered to indicate the amount of progress made so far.
  • complete – The xhr Request completed successfully work as always.

Download Free Demo Project

Download free demo project from github: releases/tag/ftqueue-v1.0.0-demo.zip