Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fireprox

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fireprox

A simple proxy for MozRepl over HTTP GET using express/nodejs

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

A simple proxy for MozRepl over HTTP-GET using express/node.js to control Firefox:

browser or client <--HTTP-GET--> fireprox <----> MozRepl + Firefox

I threw this together because I needed an easy way to programatically read the current url from Firefox into my javascript web application WhoDoTheyServe.com but was unable to workaround browser security restrictions or get Firefox WebDriver to work reliably.

To Install and Run

$ npm install fireprox
$ cd node_modules/fireprox
$ node fireprox

Options

$ node fireprox --help

Usage: fireprox [options]

Options:

  -h, --help             output usage information
  -V, --version          output the version number
  -p, --port [port]      fireprox listening port (default:8080)
  --mozrepl-host [host]  mozrepl hostname or ip-address (default:localhost)
  --mozrepl-port [port]  mozrepl port (default:4242)

Usage

Navigate to http://server:8080 where server is the node.js server running fireprox. You should see Fireprox says hello!.

Now navigate to http://server:8080/COMMAND where COMMAND is any MozRepl command.

Examples

To get the firefox current url browse to http://server:8080/content.location.href

To navigate firefox to http://bar browse to http://server:8080/content.location.href='http:%2f%2fbar' (notice the escaped //)

To show foo in an alert box browse to http://server:8080/alert('foo') (you'll need to manually close this alert before fireprox returns).

To clone, build and run locally

$ git clone git@github.com:dizzib/fireprox.git

$ npm install -g livescript   # ensure livescript is installed globally
$ ./task/bootstrap            # compile the scripts and install dependencies
$ node dist/task/repl         # launch the task runner
fireprox > b.fc               # compile everything

To run your newly built fireprox:

$ node dist/site/server

Credits

Inspired by codediesel.

License

MIT

Keywords

FAQs

Package last updated on 01 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc