
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
react-native-background-timer-android
Advanced tools
setInterval and setTimeout that work even if the app is running in the background
This library provides setTimeout
and setInterval
implementations that keep working even if the app is running in the background or the screen is locked.
Based on react-native-background-timer but with major code changes and only works on Android.
yarn add react-native-background-timer-android
import Timer from "react-native-background-timer-android";
// Start a timer that will repeatedly log "tic" after 500 milliseconds
const intervalId = Timer.setInterval(() => console.log("tic"), 500);
// Cancel the timer when you are done with it
Timer.clearInterval(intervalId);
// Start a timer that will log "tic" after 500 milliseconds just once
const timeoutId = Timer.setTimeout(() => console.log("tic"), 500);
// Cancel the timer if needed
Timer.clearTimeout(timeoutId);
Timer.setInterval(callback: () => void, millis: number, onError?: (error: Error) => void): number;
Timer.setTimeout(callback: () => void, millis: number, onError?: (error: Error) => void): number;
Timer.clearInterval(id: number): Promise<void>;
Timer.clearTimeout(id: number): Promise<void>;
FAQs
setInterval and setTimeout that work even if the app is running in the background
The npm package react-native-background-timer-android receives a total of 217 weekly downloads. As such, react-native-background-timer-android popularity was classified as not popular.
We found that react-native-background-timer-android demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.