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!
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.
npm install -g @yoshiboi18303/apex-bp-calculator
npm install @yoshiboi18303/apex-bp-calculator
abp
const bpCalculator = require("@yoshiboi18303/apex-bp-calculator");
console.log(bpCalculator.default(1, 10, 0)); // Replace the arguments with whatever you want
import bpCalculator from "@yoshiboi18303/apex-bp-calculator";
console.log(bpCalculator(1, 10, 0)); // Replace the arguments with whatever you want
You can view the website here
This package is licensed under the MIT License
You can contribute to help this package! Here's a few steps to get started with that.
Note: Bolded prerequisites are required.
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
Now install the dependencies, which will be required for coding this package.
npm install
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.
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.
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.