0.0.4 • Published 10 years ago

devtools-reloader-station v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

Devtools Reloader Station

Installlation

npm install -g devtools-reloader-station

Usage

# load and start server
station = require 'devtools-reloader-station'
station.start()
# trigger tab reload
station.reload 'pieces of url'

Here's how I use it in my project: https://gist.github.com/jiyinyiyong/10336012

Notice that you need devtools-reloader-crx running in Chrome to use this.

Or you may trigger reload event by yourself:

net = require 'net'
pattern = 'http repo todolist'
# patterns = pattern.split(' ')
client = net.connect port: 8888, ->
  client.write 'pattern'

The Chrome Extension will find all tabs whose urls contain the patterns and reload them.

License

MIT

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago