@dminkovsky/http-equiv-refresh
v2.0.2
Published
Parse an HTML meta refresh value.
Downloads
8
Maintainers
Readme
http-equiv-refresh
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 }