
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
time-events
Advanced tools
Javascript library to allow subscribing on time change events like onTick, onSecondChange, onMinuteChange, onHourChange, onDayChange, onWeekChange, onMonthChange and onYearChange
Javascript library to allow subscribing on time change events like: millisecondsChange, secondsChange, minutesChange, hoursChange, dayChange, dateChange, weekChange, monthChange and yearChange
millisecondsChange
, secondsChange
, minutesChange
, hoursChange
, dayChange
, dateChange
, weekChange
, monthChange
and yearChange
error
eventnpm install time-events
import TimeEvents from 'time-events';
const time = new TimeEvents();
/**
* @param currentSeconds will be the ccurrent machine seconds returned bew new Date()
* @param previousSeconds time will be the previous seconds based on event time, in this example it is previous Seconds
*/
time.on('secondsChange', (currentSeconds, previousSeconds) => console.log(currentSeconds, previousSeconds));
/**
* @description Diffirent hour event example
*/
time.on('hourChange', (currentHour, previousHour) => console.log(currentHour, previousHour));
/**
* @description Identify which event throw an error: hours, seconds, ...
*/
time.on('error', (error, eventType, currentTimeObj, previousTimeObj) => console.log(error, eventType));
time.start();
// Get the current time provided by the instance
const currentTimeObj = time.time.toJS();
console.log(currentTimeObj.seconds);
console.log(currentTimeObj.hours);
console.log(currentTimeObj.year);
// Check if time is started
// time.started property is the return value of setInterval() method on your environment
console.log(!!time.started);
To run the demo, follow these steps:
npm install
npm start
To run the test, follow these steps:
npm install
npm run test
FAQs
Javascript library to allow subscribing on time change events like onTick, onSecondChange, onMinuteChange, onHourChange, onDayChange, onWeekChange, onMonthChange and onYearChange
The npm package time-events receives a total of 0 weekly downloads. As such, time-events popularity was classified as not popular.
We found that time-events 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.