GitHub Codespaces Utilities
Utility for adding better project support for GitHub Codespaces.
Welcome to the codespaces
repository. This package simply gives a couple functions for accessing to GitHub Codespaces related information. It can help you add better project support for GitHub codespaces, especially pertaining to either side of applications which are not fully contained.
Installation
·
Usage
Installation
npm install codespaces
Usage
import { getCodespacesTunnelUrl } from "codespaces";
const url = getCodespacesTunnelUrl({ port: 2000 });
console.log(url);
import { getCodespacesEnvironment } from "codespaces";
const environment = getCodespacesEnvironment();
console.log(environment);