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

fingerblast

v1.1.1

Published

Emulate touch event for desktop browsers

Downloads

4

Readme

Fingerblast.js

Available demo here : http://stephanebachelier.github.io/fingerblast.js

Notice

This small library is extracted from ratchet. I'm not the author, just made this repository to be able to install it from bower, without digging into ratchet repository.

Authors are:

Description

This library has no dependency. Two build are provided:

  • non umd version you can use by injecting a script.
  • umd version which can be used globally, with AMD (RequireJS) or with commonJS.

Minified versions are provided for both version.

  • non umd version: 7.9k, 4.2k minified
  • umd version: 8.4k, 4.3k minified

Usage

Build

There is a build task which lint, build the global and umd versions, and minify the build version in .min.js.

The default grunt task will run the build task, so you only need to:

$ npm install
$ grunt

Four files will be available in dist folder :

  • fingerblast.js
  • fingerblast.min.js
  • fingerblast.umd.js
  • fingerblast.umd.min.js

Demos

There are two demos.

  • index.html which load FingerBlast with a <script>
  • index.rjs.html which use RequireJS to load FingerBlast

dependencies

Install demos dependencies which are Ratchet which is used for UI and RequireJS.

If you have not already build the library

$ npm install
$ grunt demos # will call the build task

Then,

$ cd demos
$ bower install

open a brower (needed for RequireJS demo)

tests

To test the RequireJS, you will need a server. Simply use the awesome serve package made by @visionmedia.

$ npm install serve
$ serve . -p 3000

It will open a server on port 3000, with demos as root directory. For this command to works, I assume serve command to be launched in demos directory. If you are in main directory simple use demos instead of ., which give: serve demos -p 3000.

Then go to you browser and test the following url:

  • http://localhost:3000/index.html or http://localhost:3000
  • http://localhost:3000/index.rjs.html

If serve fails and complains with a message like Error: listen EADDRINUSE, you should just change the port to a value not being used.

If you can swipe the images in the desktop, then everything is working. If you test these pages with a mobile, FingerBlast is useless as your browser already supports touch events.

License

Original work by [email protected] was licensed with Apache v2. I think it should be the same even if adapted.