This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

transfer

1.0.7 • Public • Published

Transfer requests from public url to your localhost!

Transfer

It's as simple as you may think:

 
var transfer = require('transfer');
 
transfer.to('http://localhost:8080')
  .then(result => {
    console.log(result); 
    /* { token      : '2kfqnpm', 
         url        : '2kfqnpm.transfer.pub', 
         pathUrl    : 'path.transfer.pub/2kfqnpm',
         protocols  : ['http', 'https'] } */
  });
 

Now all requests going to http://2kfqnpm.transfer.pub or http://path.transfer.pub/2kfqnpm are transferred to your localhost.

In order to stop listening for upcoming requests you can use transfer.disconnect:

  transfer.to(8080) // Will transfer all requests to your port 8080
    .then(console.log);
  
  transfer.disconnect();

Package Sidebar

Install

npm i transfer

Weekly Downloads

25

Version

1.0.7

License

MIT

Last publish

Collaborators

  • npm