Add the following code to your project's shard.yml under:
to use in production
- OR -
development_dependencies to use in development
Time::Span#humanize method for Crystal.
Add this to your application's
dependencies: time-span-humanize: github: vladfaust/time-span-humanize version: ~> 0.1.0
This shard follows Semantic Versioning v2.0.0, so check releases and change the
Note that until Crystal is officially released, this shard would be in beta state (
0.*.*), with every minor release considered breaking. For example,
0.2.0is breaking and
require "time-span-humanize" 42.milliseconds.humanize # => "42ms"