# time-f

> This repository is a template of the npm package.

Latest version **0.0.1** (published 2018-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install time-f
pnpm add time-f
yarn add time-f
bun add time-f
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-01-12 |
| First published | 2018-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Naoto Ikuno |
| Maintainers | pandanoir |

## Links

- npm: https://www.npmjs.com/package/time-f
- npm.io page: https://npm.io/package/time-f

## Recent versions

- 0.0.1 (latest) — 2018-01-12

## README

# time-f

[![Build Status](https://travis-ci.org/pandanoir/time-f.svg?branch=master)](https://travis-ci.org/pandanoir/time-f)

This library provides a function.The function, `time()`, converts arguments into a time based value.

# Usage

```javascript
const time = require('time-f');
const str = '1h 15m';
const time1 = time(str);
const time2 = time(1, 15, 0);
console.log(time1); // 4.5e+6 milliseconds
console.log(time2); // 4.5e+6 milliseconds
```

For example, `time()` can be used in `setInterval()`.

```javascript
setInterval(f, time('5sec'));
```

Compared with `5000`, `time('5sec')` is human-readable.

---
_Source: https://npm.io/package/time-f · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
