React Humanize Duration
Humanize a number into time in React and React Native
1000
→1 second
Try in CodeSandbox
Install
$ npm install react-humanize-duration
Usage
; const App = <div> <HumanizeDuration duration=1000 /> </div>; // => '1 second'
API
number={input}
Type: integer
<HumanizeDuration = /> // => '1 second'
language={object}
Type: object
<HumanizeDuration = = /> // => '1 segundo'
License
MIT © Yohix