{"id":25543952,"url":"https://github.com/dimitrinicolas/pretty-frame-rate","last_synced_at":"2026-02-07T10:30:19.349Z","repository":{"id":57330126,"uuid":"146441385","full_name":"dimitrinicolas/pretty-frame-rate","owner":"dimitrinicolas","description":"Transform a frame-rate value into an human readable string (\"30000/1001\" → \"29.97fps\")","archived":false,"fork":false,"pushed_at":"2018-08-29T09:03:07.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T10:05:49.464Z","etag":null,"topics":["frame-rate","pretty"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pretty-frame-rate","language":"JavaScript","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/dimitrinicolas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-28T12:04:29.000Z","updated_at":"2018-08-29T09:02:55.000Z","dependencies_parsed_at":"2022-09-10T13:51:31.976Z","dependency_job_id":null,"html_url":"https://github.com/dimitrinicolas/pretty-frame-rate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitrinicolas%2Fpretty-frame-rate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitrinicolas%2Fpretty-frame-rate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitrinicolas%2Fpretty-frame-rate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitrinicolas%2Fpretty-frame-rate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimitrinicolas","download_url":"https://codeload.github.com/dimitrinicolas/pretty-frame-rate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239800299,"owners_count":19699119,"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":["frame-rate","pretty"],"created_at":"2025-02-20T07:39:53.705Z","updated_at":"2026-02-07T10:30:19.304Z","avatar_url":"https://github.com/dimitrinicolas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pretty-frame-rate [![Build Status][travis badge]][travis link] [![Coverage Status][coveralls badge]][coveralls link]\n\nTransform a frame-rate value into an human readable string.\n\n## Installation\n\n```console\n$ npm install pretty-frame-rate\n```\n\n## Usage\n\n```js\nconst prettyFrameRate = require('pretty-frame-rate');\n\nprettyFrameRate(30000 / 1001);\n//=\u003e '29.97fps'\n\nprettyFrameRate('30000/1001');\n//=\u003e '29.97fps'\n\nprettyFrameRate(60);\n//=\u003e '60fps'\n\nprettyFrameRate(30000 / 1001, { decimals: 0 });\n//=\u003e '30fps'\n\nprettyFrameRate(30, { suffix: 'ips' });\n//=\u003e '30ips'\n```\n\nThe default options are:\n\n```js\nconst DEFAULT_OPTIONS = {\n  decimals: 2,\n  suffix: 'fps'\n};\n```\n\n## Related\n\n- [pretty-ms][pretty-ms] - Convert milliseconds to a human readable string: \n`1337000000` → `15d 11h 23m 20s`\n- [pretty-bytes][pretty-bytes] - Convert bytes to a human readable string: \n1337 → 1.34 kB\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).\n\n[travis badge]: https://travis-ci.com/dimitrinicolas/pretty-frame-rate.svg?branch=master\n[travis link]: https://travis-ci.com/dimitrinicolas/pretty-frame-rate\n[coveralls badge]: https://coveralls.io/repos/github/dimitrinicolas/pretty-frame-rate/badge.svg?branch=master\n[coveralls link]: https://coveralls.io/github/dimitrinicolas/pretty-frame-rate?branch=master\n\n[pretty-ms]: https://github.com/sindresorhus/pretty-ms\n[pretty-bytes]: https://github.com/sindresorhus/pretty-bytes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitrinicolas%2Fpretty-frame-rate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimitrinicolas%2Fpretty-frame-rate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitrinicolas%2Fpretty-frame-rate/lists"}