0.1.1 • Published 6 years ago
shift-code-observer v0.1.1
Shift Code Observer
Observe Borderlands SHiFT codes when they are released
Install
npm install shift-code-observerUsage
observeShiftCodes(options? Options): Observable<ShiftCode>
Create an observable of SHiFT codes from various providers.
import {observeShiftCodes} from 'shift-code-observer';
observeShiftCodes()
.subscribe(
(code) => console.log(code),
(error) => console.error(error),
() => console.log('Done');
);Options
historic: boolean(Default:true)- If true, will fetch codes previously released.
current: boolean(Default:true)- If true, will fetch newly released codes.
game: string/games: string[](Default:undefined)- If set, will only fetch codes matching the provided game(s).
platform: string/platforms: string[](Default:undefined)- IF set, will only fetch codes matching the provided platforms(s).
SHiFT Codes
Codes will be historic (previously released) and brand new as they are released.