@strong-roots-capital/duration-of-timeframe
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

duration-of-timeframe Build status npm version codecov

Resolve timeframe into corresponding momentjs duration

Install

npm install @strong-roots-capital/duration-of-timeframe

Use

import durationOfTimeframe from '@strong-roots-capital/duration-of-timeframe'

console.log(durationOfTimeframe('4H'))
//=>'hour'

Related

/@strong-roots-capital/duration-of-timeframe/

    Package Sidebar

    Install

    npm i @strong-roots-capital/duration-of-timeframe

    Weekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    6.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • amchelle
    • hamroctopus