🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

injetador

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

injetador

Reloads browser on changes and also injects stuff

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 23 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts