web-blog/node_modules/http-equiv-refresh
2026-05-29 19:34:34 +01:00
..
index-es5.js First commit 2026-05-29 19:34:34 +01:00
index-es5.js.map First commit 2026-05-29 19:34:34 +01:00
index.js First commit 2026-05-29 19:34:34 +01:00
license First commit 2026-05-29 19:34:34 +01:00
package.json First commit 2026-05-29 19:34:34 +01:00
README.md First commit 2026-05-29 19:34:34 +01:00

http-equiv-refresh NPM Version Build Status Coverage Status

Parse an HTML meta refresh value.

Installation

Node.js >= 6 is required. To install, type this at the command line:

npm install http-equiv-refresh

Usage

const parseMetaRefresh = require('http-equiv-refresh');

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

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