0.1.1 • Published 6 years ago

shift-code-observer v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Shift Code Observer

Observe Borderlands SHiFT codes when they are released

Install

npm install shift-code-observer

Usage

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.

Sources

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago