0.2.0 • Published 6 years ago
@i2/runonpage v0.2.0
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
0.2.0
6 years ago