{"id":17330608,"url":"https://github.com/adam12/friendly_numbers","last_synced_at":"2025-04-14T17:54:07.625Z","repository":{"id":56847757,"uuid":"80795171","full_name":"adam12/friendly_numbers","owner":"adam12","description":"Friendly number helpers for your non-Rails/Padrino apps.","archived":false,"fork":false,"pushed_at":"2024-12-27T16:00:20.000Z","size":40,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T05:43:25.899Z","etag":null,"topics":["roda","sinatra"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adam12.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-03T03:54:22.000Z","updated_at":"2024-12-27T16:00:24.000Z","dependencies_parsed_at":"2023-01-30T22:25:13.703Z","dependency_job_id":null,"html_url":"https://github.com/adam12/friendly_numbers","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Ffriendly_numbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Ffriendly_numbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Ffriendly_numbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Ffriendly_numbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adam12","download_url":"https://codeload.github.com/adam12/friendly_numbers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248931844,"owners_count":21185250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["roda","sinatra"],"created_at":"2024-10-15T14:51:47.026Z","updated_at":"2025-04-14T17:54:07.605Z","avatar_url":"https://github.com/adam12.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FriendlyNumbers (aka Friendly)\n\nFriendly number helpers without the mess. Working on a Roda or Sinatra application\nand want to format a number into a currency or friendly file size? Got you covered.\n\nRails-like helpers for `number_to_currency` and `number_to_human_size`\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'friendly_numbers'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install friendly_numbers\n\n## Usage\n\nTo format a value as a currency:\n\n    FriendlyNumbers.number_to_currency 123.45  # =\u003e \"$123.45\"\n\nTo format a value as a human file size:\n\n    FriendlyNumbers.number_to_human_size 12345.67  # =\u003e \"12.056 KB\"\n\nTo format time in seconds to an elapsed time:\n\n    FriendlyNumbers.seconds_to_time(65) # =\u003e \"1m 5s\"\n\nAlso conveniently aliased under the `Friendly` namespace.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake test` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push git\ncommits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/adam12/friendly_numbers.\n\nI love pull requests! If you fork this project and modify it, please ping me to see\nif your changes can be incorporated back into this project.\n\nThat said, if your feature idea is nontrivial, you should probably open an issue to\n[discuss it](http://www.igvita.com/2011/12/19/dont-push-your-pull-requests/)\nbefore attempting a pull request.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam12%2Ffriendly_numbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam12%2Ffriendly_numbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam12%2Ffriendly_numbers/lists"}