whenwords: A relative time formatting library, with no code
SMRTR summary
A new open-source library called whenwords provides relative time formatting functions across multiple programming languages without containing any actual code. Instead, it offers language-agnostic specifications, test cases, and AI prompts that developers can use to generate implementations in Ruby, Python, Rust, Elixir, Swift, PHP, and Bash. The library includes functions for time formatting like "3 hours ago" and duration parsing.
SMRTR provides this summary for quick context. The original article belongs to lobste.rs.
Read the original article