
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
react-js-cron
Advanced tools
Live demo and usage at https://xrutayisire.github.io/react-js-cron/
Be sure that you have these dependencies on your project:
# Yarn
yarn add react-js-cron
# NPM
npm install --save react-js-cron
Learn more with dynamic settings.
CronProps {
/**
* Cron value, the component is by design a controlled component
* The first value will be the default value
*
* required
*/
value: string
/**
* Set the cron value, similar to onChange
* The naming tells you that you have to set the value by yourself
*
* required
*/
setValue:
| (value: string) => void
| Dispatch<SetStateAction<string>>
/**
* Set the container className and used as a prefix for other selectors
* Available selectors: https://xrutayisire.github.io/react-js-cron/?path=/story/reactjs-cron--custom-style
*/
className?: string
/**
* Humanize the labels in the cron component, SUN-SAT and JAN-DEC
*
* Default: true
*/
humanizeLabels?: boolean
/**
* Humanize the value, SUN-SAT and JAN-DEC
*
* Default: false
*/
humanizeValue?: boolean
/**
* Add a "0" before numbers lower than 10
*
* Default: false
*/
leadingZero?: boolean | ['month-days', 'hours', 'minutes']
/**
* Define the default period when the default value is empty
*
* Default: 'day'
*/
defaultPeriod?: 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'reboot'
/**
* Disable the cron component
*
* Default: false
*/
disabled?: boolean
/**
* Make the cron component read-only
*
* Default: false
*/
readOnly?: boolean
/**
* Define if empty should trigger an error
*
* Default: 'for-default-value'
*/
allowEmpty?: 'always' | 'never' | 'for-default-value'
/**
* Support cron shortcuts
*
* Default: ['@yearly', '@annually', '@monthly', '@weekly', '@daily', '@midnight', '@hourly']
*/
shortcuts?: boolean | ['@yearly', '@annually', '@monthly', '@weekly', '@daily', '@midnight', '@hourly', '@reboot']
/**
* Define the clock format
*/
clockFormat?: '12-hour-clock' | '24-hour-clock'
/**
* Display the clear button
*
* Default: true
*/
clearButton?: boolean
/**
* antd button props to customize the clear button
*/
clearButtonProps?: ButtonProps
/**
* Display error style (red border and background)
*
* Display: true
*/
displayError?: boolean
/**
* Triggered when the cron component detects an error with the value
*/
onError?:
| (error: {
type: 'invalid_cron'
description: string
}) => void
| Dispatch<SetStateAction<{
type: 'invalid_cron'
description: string
}>>
| undefined
/**
* Change the component language
* Can also be used to remove prefix and suffix
*
* Default './src/locale.ts'
*/
locale?: {
everyText?: string
emptyMonths?: string
emptyMonthDays?: string
emptyMonthDaysShort?: string
emptyWeekDays?: string
emptyWeekDaysShort?: string
emptyHours?: string
emptyMinutes?: string
emptyMinutesForHourPeriod?: string
yearOption?: string
monthOption?: string
weekOption?: string
dayOption?: string
hourOption?: string
minuteOption?: string
rebootOption?: string
prefixPeriod?: string
prefixMonths?: string
prefixMonthDays?: string
prefixWeekDays?: string
prefixWeekDaysForMonthAndYearPeriod?: string
prefixHours?: string
prefixMinutes?: string
prefixMinutesForHourPeriod?: string
suffixMinutesForHourPeriod?: string
errorInvalidCron?: string
weekDays?: string[]
months?: string[]
}
}
MIT © xrutayisire
1.0.7
FAQs
A React cron editor with antd inspired by jqCron
The npm package react-js-cron receives a total of 88,730 weekly downloads. As such, react-js-cron popularity was classified as popular.
We found that react-js-cron 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.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.