1.2.0 • Published 2 days ago
rrule-rust v1.2.0
rrule-rust
rrule-rust
is a napi-rs wrapper around Rust's rrule crate
Quick Start
See test folder to find more use cases
npm i rrule-rust
import { RRule, RRuleSet, Frequency } from 'rrule-rust';
const rrule = new RRule(Frequency.Daily).setCount(5);
const set = new RRuleSet(873205200000, 'US/Eastern').addRrule(rrule);
const dates = set.all(); // [ 873205200000, 873291600000, 873378000000, 873464400000, 873550800000 ]
const asString = set.toString(); // DTSTART;TZID=US/Eastern:19970902T090000\nFREQ=daily;COUNT=5;BYHOUR=9;BYMINUTE=0;BYSECOND=0
Perfomance
Host: MacBook Pro, 13-inch, 2018
OS: macOS 13.2 (22D49)
Processor: 2,3 GHz Quad-Core Intel Core i5
Memory: 16 GB 2133 MHz LPDDR3
rrule | rrule-rust | ||
---|---|---|---|
UTC TZ | 8 128 ops/s | 42 343 ops/s | ~5x faster |
Other TZ | 68 ops/s | 40 549 ops/s | ~600x faster |
You can run benchmarks using npm run benchmark
License
rrule-rust
is MIT licensed.
2.0.0-next.6
2 days ago
2.0.0-next.4
3 days ago
2.0.0-alpha.3
10 days ago
2.0.0-alpha.4
10 days ago
2.0.0-alpha.1
10 days ago
2.0.0-alpha.2
10 days ago
2.0.0-next.3
14 days ago
2.0.0-next.2
2 months ago
2.0.0-next.1
3 months ago
1.2.0
4 months ago
1.2.0-next.3
4 months ago
1.2.0-next.2
4 months ago
1.2.0-next.1
4 months ago
1.1.6-test.2
4 months ago
1.1.6-test.1
4 months ago
1.1.5
4 months ago
1.1.4
1 year ago
1.1.3
1 year ago
1.1.1
1 year ago
1.0.0
1 year ago
0.0.1-7
1 year ago
0.0.1-6
1 year ago
0.0.1-5
1 year ago
0.0.1-4
1 year ago
0.0.1-2
1 year ago
0.0.1-1
1 year ago