0.1.3 • Published 3 years ago

codespaces v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

npm install codespaces

Usage

import { getCodespacesTunnelUrl } from "codespaces";

// Get the current GitHub Codespaces tunnel URL at a specific port.
const url = getCodespacesTunnelUrl({ port: 2000 });
console.log(url); // https://ridafkih-code...-2000.githubpreview.dev
import { getCodespacesEnvironment } from "codespaces";

// Get general JSON information about the current GitHub Codespaces
const environment = getCodespacesEnvironment();
console.log(environment); // { isCodespaces: true, ...
0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago