JSPM

http-equiv-refresh

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 95567
  • Score
    100M100P100Q164979F
  • License MIT

Parse an HTML meta refresh value.

Package Exports

  • http-equiv-refresh

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (http-equiv-refresh) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

http-equiv-refresh NPM Version Build Status

Parse an HTML meta refresh value.

Installation

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

npm install http-equiv-refresh

Usage

var parseMetaRefresh = require("http-equiv-refresh");
 
parseMetaRefresh("5; url=http://domain.com/");
//=> { timeout:5, url:"http://domain.com/" }

parseMetaRefresh("5");
//=> { timeout:5, url:null }