share-localhost
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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();
});

link

/share-localhost/

    Package Sidebar

    Install

    npm i share-localhost

    Weekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    43.9 kB

    Total Files

    15

    Last publish

    Collaborators

    • bluelovers