JSPM

http-equiv-refresh

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 83504
  • Score
    100M100P100Q170756F
  • 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 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 }