JSPM

  • Created
  • Published
  • Downloads 165141
  • Score
    100M100P100Q185923F
  • License BSD-2-Clause

node wrapper for ngrok

Package Exports

  • ngrok

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngrok) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ngrok Build Status

Simple node wrapper for ngrok client. Ngrok exposes localhost to the web.

https://ngrok.com/

usage

var ngrok = require('ngrok');

ngrok.connect({port: 80}, function (err, url) {
  console.log('got ngrok url', url);
});

When tunnel is established you can use http://127.0.0.1:4040/http/in to inspect the webhooks done via ngrok.

The tunnel will be killed when node process is done. For manual shutdown use

ngrok.disconnect();