screeps-fns
v0.0.6
Published
Helper functions for Screeps
Downloads
2
Readme
Screeps-fns
Screeps-fns is designed to be a date-fns
like library for screeps.
Some of its functions are very basic, for example isRoomVisible
is a one liner. The idea is to make your code more readable AND prevent future issues from API changes.
Install
npm install --save screeps-fns
Usage
To keep your bundle size down you can require functions directly. For example
const ivm = require('screeps-fns/lib/ivm')
or you can import from the module like so:
import {ivm} from 'screeps-fns'
both methods work fine but importing may add more code than needed.
Functions
For a list of functions and documentation head to screep-fns