0.1.2 • Published 2 years ago

schedule-script v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

schedule-script

"Schedule script is a simple script to schedule a script to run at a specific time." -GitHub CoPilot

Schedule Script is a scripting language developed for Schedule Personalizer. It was created because why the heck not and also because I did not want to write the config in JSON or TypeScript. Something custom would make some things way easier to work with.

That aside. HFGL.

example react thingy

please improve

export function useSchedule(input: string, date: Date, extra: any) {
    const parsed: SCS = useMemo(() => {
        return new SCS(input)
    }. [input])

    const sch = useMemo(() => {
        return parsed.scheduleFor(date, extra)
    }, [parsed,date,extra])

    const raw = useMemo(() => {
        return parsed.exec({ displayDate: date, ...extra })
    }, [parsed,date,extra])
    return {sch, raw /* we should pull things out of the raw, like lunch info and config, not just returning it as is */}
}
0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago