breejs / later

*Maintained fork of Later.* A javascript library for defining recurring schedules and calculating future (or past) occurrences for them. Includes support for using English phrases and Cron schedules. Works in Node and in the browser.
https://breejs.github.io/later/
MIT License
134 stars 13 forks source link

Difference between `@breejs/later` and `sfn-scheduler-parser`? #18

Closed Lioness100 closed 2 years ago

Lioness100 commented 2 years ago

I don't think breejs quite fits my usecase, but I'd still love to use @breejs/later to turn specifically human phrases into programmatically usable dates. In breejs' readme, it lists sfn-scheduler as an unmaintained alternative, and cites that its parser doesn't accept crons. However, I don't need support for crons, so I was wondering if there was any big selling point to this library over sfn-scheduler-parser relating to text parsing. Thanks!

niftylettuce commented 2 years ago

This library was mainly created as a modern and updated version of the original later library.

I would compare later to sfn-scheduler-parser in order to learn more.

Lioness100 commented 2 years ago

That's what I'm trying to do 🤔

niftylettuce commented 2 years ago

Just compare https://breejs.github.io/later/parsers.html#text to https://github.com/hyurl/sfn-schedule-parser#example. The syntax / language parsing is slightly different it seems.

For example @breejs/later (and later originally) support text like on the, and sfn-scheduler-parser has different syntax to achieve the same thing.