How to use the @bundle-stats/utils.formatTime function in @bundle-stats/utils

To help you get started, we’ve selected a few @bundle-stats/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github relative-ci / bundle-stats / packages / ui / src / components / job-header / job-header.jsx View on Github external
<div>
        <h1>
          <span>
            {`#${job.internalBuildNumber}`}
          </span>
          {tag &amp;&amp; (
            <span>
              {tag}
            </span>
          )}
        </h1>
        <div>
          {builtAt &amp;&amp; (
            <span title="{`${formatDate(builtAt)}">
              
              <span>
                {formatDistanceToNow(new Date(builtAt), { addSuffix: true })}
              </span>
            </span>
          )}

          {hash &amp;&amp; (
            <span title="Webpack bundle hash">
              
              <span>{hash}</span>
            </span>
          )}

          {children}</div></div>