README
@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);
}