Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

@shift-code/get

Get active Gearbox SHiFT codes

Install

npm install @shift-code/get

Usage

getShiftCodes(): AsyncGenerator<ShiftCode>

Create an AsyncGenerator of active SHiFT codes.

import {getShiftCodes} from '@shift-code/get';

for await (const shift of getShiftCodes()) {
  console.log(shift.code);
}