# Code coverage report for humanize-ms/index.js

## Statements: 100% (5 / 5) Branches: 100% (2 / 2) Functions: 100% (1 / 1) Lines: 100% (4 / 4) Ignored: none

All files » humanize-ms/ » index.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19

    1

    1
    2
    1

     /*!
     * humanize-ms - index.js
     * Copyright(c) 2014 dead_horse <dead_horse@qq.com>
     * MIT Licensed
     */

    'use strict';

    /**
     * Module dependencies.
     */

    var ms = require('ms');

    module.exports = function (t) {
      if (typeof t === 'number') return t;
      return ms(t);
    };