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

codespaces

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codespaces

Utility functions for use within, or for adding better project support for GitHub Codespaces

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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";

// 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, ...

Keywords

FAQs

Package last updated on 26 Jul 2022

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