localtunnel-es6-promise

1.0.3 • Public • Published
Promises/A+ logo

localtunnel-es6-promise

Build Status

This package is similar to localtunnel but uses native ES6 promises. It's so small that you might prefer to just write down the code in your app.

installation

localtunnel is defined as a peer-dependency and thus has to be installed separately.

npm install localtunnel
npm install localtunnel-es6-promise

use

import localtunnel from 'localtunnel-es6-promise';

let tunnel = localtunnel(port).then(tunnel => {
  // the assigned public url for your tunnel
  // i.e. https://abcdefgjhij.localtunnel.me
  tunnel.url;
}).catch(err => {
  if (err) ...
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    1

Package Sidebar

Install

npm i localtunnel-es6-promise

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • lufo