Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javascipt/transfer
🌎 ⇆ 🖥️ Transfer http requests from public url to your localhost
https://github.com/javascipt/transfer
local localhost protocol transfer transfer-requests tunnel tunneling webhook
Last synced: about 2 months ago
JSON representation
🌎 ⇆ 🖥️ Transfer http requests from public url to your localhost
- Host: GitHub
- URL: https://github.com/javascipt/transfer
- Owner: Javascipt
- License: mit
- Created: 2018-01-12T00:03:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T20:25:29.000Z (almost 7 years ago)
- Last Synced: 2024-02-24T10:08:53.802Z (10 months ago)
- Topics: local, localhost, protocol, transfer, transfer-requests, tunnel, tunneling, webhook
- Language: JavaScript
- Homepage: http://transfer.pub
- Size: 31.3 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Transfer requests from public url to your localhost!
![Transfer](https://api.travis-ci.org/Javascipt/transfer.svg)
It's as simple as you may think:
```javascript
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`:
```javascript
transfer.to(8080) // Will transfer all requests to your port 8080
.then(console.log);
transfer.disconnect();
```