0.2.0 • Published 6 years ago

@i2/runonpage v0.2.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
6 years ago

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