schedule-script
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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 */}
}

/schedule-script/

    Package Sidebar

    Install

    npm i schedule-script

    Weekly Downloads

    100

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    2.58 MB

    Total Files

    51

    Last publish

    Collaborators

    • insberr