@teakit/month
@teakit/month is a TypeScript year-month calculation package for ESM and
browser environments.
Guide
Use this page as the short human entrypoint. Keep detailed API behavior in the method reference pages.
Installation & Usage
Always create values with Month.from(...). Use diff for month differences
and add or sub for month offsets.
Package Contract
- Import
Monthfrom@teakit/month. - Create values with
Month.from(...); do not usenew Month(...)or callMonth(...). - Use canonical
YYYY-MMstrings for normal years. - Treat
Monthinstances as immutable. - Use Month methods instead of JavaScript date arithmetic.
- The package is browser-safe ESM and has no Node runtime imports.
Reference Map
LLMs
AI agents should start with LLMs, then open only the relevant method reference file. Reference pages keep human usage first and AI-specific contracts near the end.