Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @launch/entry with all npm packages installed. Try it out:

var entry = require("@launch/entry")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@launch/entry v1.7.0

Launch.js - Simple client/server entry plugin

🚀 Launch.js - Simple client/server entry plugin

Build Status npm license

Plugin for Launch.js to add a client/server entrypoint.

Useful for scenarios where other plugins don't set an entrypoint.


import App from "@launch/app";
import EntryPlugin from "@launch/entry";

void new App()
    new EntryPlugin()


server(file: string)

Set the absolute path to the server entrypoint.

client(file: string)

Set the absolute path to the client entrypoint.

Setting the file path

When passing a file string to either the .server() or .client() methods, give an absolute path.

The simplest way to do this is to use require.resolve(), which will first resolve relative to the source file that calls the method, and will return the fully qualified path on disk.



RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free