pretty-frame-rate
Transform a frame-rate value into an human readable string.
Installation
$ npm install pretty-frame-rate
Usage
const prettyFrameRate = ; ;//=> '29.97fps' ;//=> '29.97fps' ;//=> '60fps' ;//=> '30fps' ;//=> '30ips'
The default options are:
const DEFAULT_OPTIONS = decimals: 2 suffix: 'fps';
Related
- pretty-ms - Convert milliseconds to a human readable string:
1337000000
→15d 11h 23m 20s
- pretty-bytes - Convert bytes to a human readable string: 1337 → 1.34 kB
License
This project is licensed under the MIT license.