0.0.2 • Published 10 years ago

injetador v0.0.2

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

Injetador

Naively reloads browsers and injects stuff

Imgur

Usage

Very often i want to see changes that i'm doing across other browsers. With Injetador you are fully able to do that :neckbeard:

Install it with:

$ npm install -g injetador

and then run it with:

$ injetador

Reload multiple browsers on file changes

Injetador Working

Specify a webpage and a directory. Go to localhost:3000 and then change a file from that dir. It will reload the page across all browsers at localhost:3000.

Reload multiple browsers on changes and inject js/css there

Just like the above, but now you are able to specify a js file and a cssfile, which will then be injected when the page finishes its loading process.

Arguments

Here are the arguments that you are able to specify when initializing Injetador. You are not required to use as Injetador provides a familiar Q&A interface.

argdescription
--webpagethe webpage which will be proxied to our the local server
--dirthe directory where your awesome stuff lives (relative)
--watchwatches the specified dir and reloads the page when that
happens.
--jsfiledetermines the js file to inject (relative to --dir)
--cssfiledetermines the css file to inject (relative to --dir)
--portthe port that injetador will use

only lazy programmers will want to write the kind of tools that might replace them in the end. Only a lazy programmer will avoid writing monotonous, repetitive code.

MIT License