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

ntouch.js

v1.1.0

Published

新一代的移动端手势库,It's Silky and Active!!!!

Downloads

16

Readme

touch.js

新一代的移动端手势库,It's Silky and Active!!!!

What makes it special?

  1. 无缝衔接JS原生语法document.addEventListener并且在此基础上进行扩展,无需学习新的函数和API接口,降低用户的心智负担

  2. 优秀的code提示,在VSCode中引用该库后,只要是使用引入的魔改版document去进行DOM操作获得的DOM元素例如,会获得对应的移动端事件的提示 JS As What the pic below shows image image

  3. 完善的扩展,只要使用该库提供的魔改版document对象去操作DOM,内部会对其产生的DOM元素进行接管和扩展,在其基础上添加必要的属性和函数,但是绝不会影响原来其他属性的使用!

  4. 完美的兼容性,完全不会影响原生对象的行为。

  5. 迷你小巧,加载速度极快

How To Use It?

Case One

import document from "touch.js"
let div  = document.createElement("div")
div.addEventListener("singleTap",(e) => {
  console.log("the singleTap event has been emitted")
})

Case Two

import document from "touch.js"
let div  = document.getElementById("demo")
div.addEventListener("doubleTap",(e) => {
  console.log("the doubleTap event has been emitted")
})

So,如果你是一位原生JS库的开发者,这将十分适合你;还等什么?Talk is cheap , let's try it!!!