# http-equiv-refresh

> Parse an HTML meta refresh value.

Latest version **2.0.1** (published 2019-07-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install http-equiv-refresh
pnpm add http-equiv-refresh
yarn add http-equiv-refresh
bun add http-equiv-refresh
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2019-07-12 |
| First published | 2015-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6 |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Steven Vachon |
| Maintainers | stevenvachon |
| Keywords | html, http-equiv, meta, metadata, parse, refresh |

## Links

- npm: https://www.npmjs.com/package/http-equiv-refresh
- Repository: https://github.com/stevenvachon/http-equiv-refresh
- Homepage: https://github.com/stevenvachon/http-equiv-refresh#readme
- Issues: https://github.com/stevenvachon/http-equiv-refresh/issues
- npm.io page: https://npm.io/package/http-equiv-refresh

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2019-07-12
- 2.0.0 — 2017-05-11
- 1.0.0 — 2016-02-07
- 0.3.0 — 2015-12-17
- 0.2.0 — 2015-12-14
- 0.1.0 — 2015-12-14

## README

# http-equiv-refresh [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url]

> Parse an HTML [meta refresh value](https://mdn.io/HTML/Element/meta#attr-http-equiv).


## Installation

[Node.js](http://nodejs.org) `>= 6` is required. To install, type this at the command line:
```shell
npm install http-equiv-refresh
```


## Usage
```js
const parseMetaRefresh = require('http-equiv-refresh');

parseMetaRefresh('5; url=http://domain.com/');
//-> { timeout:5, url:'http://domain.com/' }

parseMetaRefresh('5');
//-> { timeout:5, url:null }
```


[npm-image]: https://img.shields.io/npm/v/http-equiv-refresh.svg
[npm-url]: https://npmjs.com/package/http-equiv-refresh
[travis-image]: https://img.shields.io/travis/stevenvachon/http-equiv-refresh.svg
[travis-url]: https://travis-ci.org/stevenvachon/http-equiv-refresh
[coveralls-image]: https://img.shields.io/coveralls/stevenvachon/http-equiv-refresh.svg
[coveralls-url]: https://coveralls.io/github/stevenvachon/http-equiv-refresh

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