
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
secondstohms
Advanced tools
This package converts seconds to a time format (HH:MM:SS) for initial few releases we are only going to return HH:MM:SS format but for later releases we can send different formats to the client
how to use this package:
npm install secondstohms
yarn add secondstohms
const { convertSecondsToHMS } = require("secondstohms");
const hms = convertSecondsToHMS(3600);
// displays 01 : 00 : 00
console.log(hms);
// second boolean argument is to get hours and minutes and seconds in an object
// for easy access to separate values
const hms_duplicate = convertSecondsToHMS(9581, true);
// displays { hours: 2, minutes: 39, seconds: 41 }
console.log(hms_duplicate);
import { convertSecondsToHMS } from "secondstohms";
const hms = convertSecondsToHMS(3600);
// displays 01 : 00 : 00
console.log(hms);
// second boolean argument is to get hours and minutes and seconds in an object
// for easy access to separate values
const hms_duplicate = convertSecondsToHMS(9581, true);
// displays { hours: 2, minutes: 39, seconds: 41 }
console.log(hms_duplicate);
import { convertToHours, convertToMinutes } from "secondstohms";
const hours = convertToHours(7200);
const minutes = convertToMinutes(7200);
// displays 2 (2 hours)
console.log(hours);
// displays 120 (120 minutes)
console.log(minutes);
FAQs
Package to convert seconds to time format (HH:MM:SS)
The npm package secondstohms receives a total of 0 weekly downloads. As such, secondstohms popularity was classified as not popular.
We found that secondstohms 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.