
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
swiperia-react
Advanced tools
Swiperia React: A powerful suite of JavaScript libraries for building intuitive swipe-driven user interfaces. Provides core gesture handling, web-specific implementations, and React components for seamless integration.
Swiperia React is a React-specific library that provides a seamless integration of the Swiperia swipe gesture handling capabilities into your React applications. Built on top of swiperia-core
and swiperia-js
, this package offers a set of React components and hooks that make it easy to add swipe gesture support to your user interfaces.
start
, move
, end
, cancel
) within your React components.You can install the swiperia-react
package using npm or yarn:
npm install swiperia-react
# or
yarn add swiperia-react
Here's a basic example of how to use the swiperia-react package:
import React from 'react';
import { SwipeArea } from 'swiperia-react';
const MyComponent = () => {
const handleSwipeStart = () => {
console.log('Swipe started');
};
const handleSwipeEnd = (event) => {
console.log('Swipe ended', event.direction);
};
return (
<SwipeArea
onSwipeStart={handleSwipeStart}
onSwiped={handleSwipeEnd}
>
{/* Your swipeable content goes here */}
<div>Swipe me!</div>
</SwipeArea>
);
};
For detailed documentation, including API references, advanced usage examples, and guides on using the useSwiperia hook, please visit the Swiperia Documentation.
We welcome contributions from the community! If you'd like to contribute to Swiperia React, please read our Contributing Guide for more information.
Swiperia React is released under the MIT License.
FAQs
Swiperia React: A powerful suite of JavaScript libraries for building intuitive swipe-driven user interfaces. Provides core gesture handling, web-specific implementations, and React components for seamless integration.
The npm package swiperia-react receives a total of 356 weekly downloads. As such, swiperia-react popularity was classified as not popular.
We found that swiperia-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.