1.1.2 • Published 2 years ago

parrot-share-localhost v1.1.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

README.md

Instantly share your localhost on internet

cli

npx share-localhost
npx share-localhost -p YOUR_PORT

if install as global npm module

share-localhost -p YOUR_PORT
local-out -p YOUR_PORT
lo -p YOUR_PORT

install

yarn add share-localhost

provider

demo

import LocalOut, { EnumLocalOutEvent } from 'share-localhost';
import { console } from 'debug-color2'

let YOUR_PORT = 80;

let context = new LocalOut({
	port: YOUR_PORT,
});

context.connect().tap(ret => {

	console.log(`server online by`, 'hostname:', ret.hostname, 'port:', ret.port);

	/**
	 * close connect
	 */
	context.close();
});
1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago