@shift-code/get

Get active Borderlands SHiFT codes

Usage no npm install needed!

<script type="module">
  import shiftCodeGet from 'https://cdn.skypack.dev/@shift-code/get';
</script>

README

@shift-code/get

Get active Borderlands 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);
}

Source Attribution