pillbug

0.0.7 • Public • Published

pillbug Build Status

Quick Static Express Server

Usage

$ npm install -g pillbug
$ pillbug [port]

Serve current folder static html

$ pillbug
// or
$ pillbug 8009

Optional

$ pillbug --proxy

And make cross-domain calls from your code like:

$.ajax({
  url: '/proxy',
  dataType: 'json',
  type: 'GET',
  data: {url: 'http://gpai-service.herokuapp.com/?id=com.urucas.wifime'},
  success: function(data) {
    // do something with your data
  }
});

Readme

Keywords

Package Sidebar

Install

npm i pillbug

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

9.57 kB

Total Files

11

Last publish

Collaborators

  • urucas
  • vrunoa