rrule-temporal 0.3.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/chunk-U2SCUIWP.js +1212 -0
- package/dist/index.cjs +243 -180
- package/dist/index.d.cts +41 -7
- package/dist/index.d.ts +41 -7
- package/dist/index.js +3 -1145
- package/dist/totext.cjs +1424 -0
- package/dist/totext.d.cts +6 -0
- package/dist/totext.d.ts +6 -0
- package/dist/totext.js +192 -0
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -74,8 +74,8 @@ const prev = rule.previous(new Date("2025-05-01T00:00Z"));
|
|
|
74
74
|
## Converting back to text
|
|
75
75
|
|
|
76
76
|
```typescript
|
|
77
|
-
rule.toString();
|
|
78
|
-
|
|
77
|
+
rule.toString(); // DTSTART and RRULE lines
|
|
78
|
+
toText(rule); // human readable description
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
## API
|
|
@@ -88,7 +88,7 @@ rule.toText(); // human readable description
|
|
|
88
88
|
| `next(after?, inclusive?)` | Next occurrence after a given date. |
|
|
89
89
|
| `previous(before?, inclusive?)` | Previous occurrence before a date. |
|
|
90
90
|
| `toString()` | Convert the rule back into `DTSTART` and `RRULE` lines. |
|
|
91
|
-
| `toText(
|
|
91
|
+
| `toText(rule, locale?)` | English description of the rule. |
|
|
92
92
|
| `options()` | Return the normalized options object. |
|
|
93
93
|
|
|
94
94
|
## Further examples
|