@yoshiboi18303/apex-bp-calculator v1.1.1
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-calculatorAs npm package
npm install @yoshiboi18303/apex-bp-calculatorUsage
As CLI
abpAs npm package (JavaScript)
const bpCalculator = require("@yoshiboi18303/apex-bp-calculator");
console.log(bpCalculator.default(1, 10, 0)); // Replace the arguments with whatever you wantAs npm package (TypeScript)
import bpCalculator from "@yoshiboi18303/apex-bp-calculator";
console.log(bpCalculator(1, 10, 0)); // Replace the arguments with whatever you wantWebsite
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
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-calculatorInstall the dependencies
Now install the dependencies, which will be required for coding this package.
npm installMake a symlink
Now, get the package ready to go globally as well as ready to be linked to other folders of yours.
npm run linkThis is the safe way to create the symlink, use this just once.
Link forcefully (not recommended)
npm run link:forceWARNING: 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 buildIf you have typescript installed globally:
tscThis will build the TypeScript code to JavaScript, which will allow you to run the code.