Skip to content

Arcath/screeps-fns

Repository files navigation

Screeps-fns

Build Status Coverage Status

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

About

Functions to aid with screeps ais

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published