New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

swi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swi

The cleanest and the most accurate swiping with JavaScript

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Install

npm install swi --save

Include

<script src='node_modules/swi/build/swi.js' type='text/javascript'></script>

...or use ES6 import

Use

swi({
  // element to attach swipe to, document by default
  element: document.getElementById('my-container'),
  left:  function () { console.log('Left swipe!');  }, // optional
  right: function () { console.log('Right swipe!'); }, // optional
  up:    function () { console.log('Up swipe!');    }, // optional
  down:  function () { console.log('Down swipe!');  }  // optional
});

Try it out

See the Swi implementation at Fustr.com

Keywords

swi

FAQs

Package last updated on 18 Jul 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