New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-humanize-duration

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-humanize-duration

Humanize a number into time in React and React Native

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
157
-29.6%
Maintainers
1
Weekly downloads
 
Created
Source

React Humanize Duration

Humanize a number into time in React and React Native 10001 second

CI Version Downloads Install size

NPM

Try in CodeSandbox

Edit react-camelcase

Install

$ npm install react-humanize-duration

Usage

import HumanizeDuration from 'react-humanize-duration';

const App = () => (
  <div>
    <HumanizeDuration duration={1000} />
  </div>
);

// => '1 second'

API

number={input}

Type: integer

<HumanizeDuration duration={1000} />

// => '1 second'

language={object}

Type: object

<HumanizeDuration duration={1000} language={{ language: 'es' }} />

// => '1 segundo'

License

MIT © Yohix

Keywords

yohix

FAQs

Package last updated on 23 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts