Skip to content

feat: export config in opts#88

Open
ShuP1 wants to merge 1 commit into
screepers:masterfrom
ShuP1:patch-1
Open

feat: export config in opts#88
ShuP1 wants to merge 1 commit into
screepers:masterfrom
ShuP1:patch-1

Conversation

@ShuP1
Copy link
Copy Markdown

@ShuP1 ShuP1 commented Jan 25, 2026

Allows to get additional fields from config like branch.

Currently you need to yaml.parse the config file manually to get those.

With config:

servers:
  main:
    host: screeps.com
    secure: true
    token: xxxx
    branch: v2
const api = await ScreepsAPI.fromConfig()
console.log(api.opts.branch)

Allows to get fields like branch without parsing config file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant