anywhen is small and focused, contributions should follow the same philosophy:
minimal, no dependencies, native Intl only.
git clone https://github.com/kirilinsky/anywhen.git
cd anywhen
pnpm installpnpm test # run tests
pnpm test:coverage # coverage report
pnpm typecheck # type check without emitting
pnpm build # build to dist/Keep it small. The bundle limit is 1750b. Check it before submitting.
No dependencies. Everything must work with native Intl — no external locale data, no helper libraries.
Tests are required. Any change to src/index.ts needs a corresponding test. Edge cases (locale boundaries, future dates, midnight crossings) are especially valuable.
TypeScript only. No plain JS files in src/.
- Fork the repo and create a branch from
main - Make your changes
- Run
pnpm testandpnpm typecheck— both must pass - Open a PR with a clear description of what changed and why
Open an issue at github.com/kirilinsky/anywhen/issues. Include the locale, input value, expected output, and actual output.
By contributing you agree that your changes will be licensed under MIT.