Data utilities for Gakumas-related projects in JavaScript.
Install from GitHub using your preferred package manager.
npm install gakumas-data@https://github.com/surisuririsu/gakumas-data
yarn add gakumas-data@https://github.com/surisuririsu/gakumas-data
To use, import the relevant classes and access the data via static methods.
import { Idols, PIdols, SkillCards } from 'gakumas-data';
const ybbKotone = PIdols.getById(32);
const kotone = Idols.getById(ybbKotone.idolId);
const allSkillCards = SkillCards.getAll();
const mentalSSRSkillCards = SkillCards.getFiltered({ types: ['mental'], rarities: ['SSR'] });
...
Data is manually transcribed and maintained in this Google Sheet: Gakumas Data
- Fork the project.
- Make a copy of the Google Sheet with your changes.
- Download the sheet as CSV and replace the content of the relevant file in the project.
- Run
npm run generate
oryarn generate
to update the corresponding JSON files. - Bump the version number in
package.json
and commit your changes. - Make a pull request.