/surge-token

Primary LanguageTypeScriptMIT LicenseMIT

surge-token

This class is a utility that allows obtaining the locally hosted access token from surge.sh

Install

npm install git+https://github.com/thebr0k3r/surge-token
yarn add git+https://github.com/thebr0k3r/surge-token

Usage

import SurgeToken from "surge-token";

const surge = await SurgeToken.create()

surge.getAuthToken()
surge.getCredentials()