screeps-fns
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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

/screeps-fns/

    Package Sidebar

    Install

    npm i screeps-fns

    Weekly Downloads

    6

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    76.8 kB

    Total Files

    81

    Last publish

    Collaborators

    • arcath