
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
cron-converter-u2q
Advanced tools
A powerful TypeScript library for working with cron expressions. Effortlessly convert between Unix and Quartz formats, generate human-readable descriptions, and validate cron expressions with ease.
# Using npm
npm install cron-converter-u2q
# Using yarn
yarn add cron-converter-u2q
# Using pnpm
pnpm add cron-converter-u2q
import { CronConverterU2Q } from 'cron-converter-u2q';
// Convert Unix to Quartz
const quartzExpression = CronConverterU2Q.unixToQuartz('5 * * * *');
console.log(quartzExpression); // "0 5 * * * ? *"
// Convert Quartz to Unix
const unixExpression = CronConverterU2Q.quartzToUnix('0 0 8 * * ?');
console.log(unixExpression); // "0 8 * * *"
// Get human-readable description
const description = CronConverterU2Q.describeUnix('*/5 * * * *');
console.log(description); // "Every 5 minutes"
// Unix to Quartz
CronConverterU2Q.unixToQuartz('0 12 * * *'); // "0 0 12 * * ? *"
CronConverterU2Q.unixToQuartz('*/15 * * * *'); // "0 */15 * * * ? *"
// Quartz to Unix
CronConverterU2Q.quartzToUnix('0 0 8 * * ?'); // "0 8 * * *"
CronConverterU2Q.quartzToUnix('0 */5 * * * ?'); // "*/5 * * * *"
// Unix format descriptions
CronConverterU2Q.describeUnix('0 12 * * *'); // "At 12:00 PM"
CronConverterU2Q.describeUnix('*/15 * * * *'); // "Every 15 minutes"
// Quartz format descriptions
CronConverterU2Q.describeQuartz('0 0 8 * * ?'); // "At 8:00 AM"
CronConverterU2Q.describeQuartz('0 */5 * * * ?'); // "Every 5 minutes"
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Converts cron expressions between unix and quartz formats
We found that cron-converter-u2q 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.