1.1.1 • Published 10 months ago

@yoshiboi18303/apex-bp-calculator v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Apex Battle Pass Calculator

An npm package and CLI for calculating the exact number of stars needed to get to a certain level in the Apex Legends Battle Pass!

Note

This package makes an estimation, it may not be exact. Please feel free to contribute to fix the math, or anything else about the code for that matter.

Installation

As CLI (recommended)

npm install -g @yoshiboi18303/apex-bp-calculator

As npm package

npm install @yoshiboi18303/apex-bp-calculator

Usage

As CLI

abp

As npm package (JavaScript)

const bpCalculator = require("@yoshiboi18303/apex-bp-calculator");

console.log(bpCalculator.default(1, 10, 0)); // Replace the arguments with whatever you want

As npm package (TypeScript)

import bpCalculator from "@yoshiboi18303/apex-bp-calculator";

console.log(bpCalculator(1, 10, 0)); // Replace the arguments with whatever you want

Website

You can view the website here

License

This package is licensed under the MIT License

Contribution Guide

You can contribute to help this package! Here's a few steps to get started with that.

Prerequisites

Node.js npm Git TypeScript

Note: Bolded prerequisites are required.

Instructions

Clone the repository

Start by cloning the repository then going into the created directory.

Run this in your terminal:

git clone https://github.com/Yoshiboi18303/apex-bp-calculator
cd apex-bp-calculator

Install the dependencies

Now install the dependencies, which will be required for coding this package.

npm install

Make a symlink

Now, get the package ready to go globally as well as ready to be linked to other folders of yours.

npm run link

This is the safe way to create the symlink, use this just once.

Link forcefully (not recommended)
npm run link:force

WARNING: THIS WILL RECKLESSLY REPLACE FILES, DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING AND YOU HAVE NO OTHER CHOICES.

Build as you go

As you make updates to the CLI, you'll want to test them. You can do that by running the build script:

npm run build

If you have typescript installed globally:

tsc

This will build the TypeScript code to JavaScript, which will allow you to run the code.