@dealmeddevs/react-cron-generator

2.0.5 • Public • Published

react-cron-generator

Simple react component to generate cron expression (Material-UI)

Getting Started

Package helps to build linux scheduler cron expression. This project uses material-ui

data = '* * * * * * *'
npm i --save @dealmeddevs/react-cron-generator

demo

Live demo

alt text

alt text

import React, { useState } from 'react'
import Cron from 'react-cron-generator'

const App = (props) => {
    const [value, setValue] = useState()

    return (
      <div>
        <Cron
          onChange={(e)=> {setValue(e)); console.log(e)}}
          value={value}
          showResultText={true}
          showResultCron={true}
        />                      
      </div>
    )
 
}

export default App

props

Prop Description Default
value cron expression
onChange
showResultText show in readable text format false
showResultCron show cron expression false

Package Sidebar

Install

npm i @dealmeddevs/react-cron-generator

Weekly Downloads

8

Version

2.0.5

License

ISC

Unpacked Size

33.5 kB

Total Files

11

Last publish

Collaborators

  • mayerlench