@i2/runonpage

0.2.0 • Public • Published

runonpage

Run a function only when window.location.toString() match a given regex

Installation

npm install --save runonpage

Usage

  const runon = require('runonpage');
  runon(/\/show-stream-store$/, () => {
    console.log('I\'m running on show-stream-store');
  });

License

The MIT License (MIT)

Copyright (c) 2015 parro-it

Readme

Keywords

Package Sidebar

Install

npm i @i2/runonpage

Weekly Downloads

0

Version

0.2.0

License

UNLICENSED

Last publish

Collaborators

  • parroit