Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lokal-js

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lokal-js

Library for interacting with Lokal.so Client REST API

  • 0.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
Maintainers
0
Weekly downloads
 
Created
Source

Lokal JS

Library for interacting with Lokal Client REST API

npm i lokal-js
import { Lokal } from 'lokal-js';

async function main() {
	const lokal = new Lokal();

	const tunnel = await lokal
		.newTunnel()
		.setLocalAddress('localhost:3000')
		.setTunnelType('HTTP')
		// .setPublicAddress('myapp.k.lokal-so.site')
		.setLANAddress('my-app.local')
		.showStartupBanner()
		.ignoreDuplicate()
		.create();

	const lanAddress = await tunnel.getLANAddress();
	console.log('LAN Address:', lanAddress);
}

main().catch(console.error);

Keywords

FAQs

Package last updated on 12 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc