Algobook
- The developer's handbook
mode-switch
back-button
Buy Me A Coffee

js-gym library

A lib that is originated from our Gym API for getting gym exercises for all muscle groups.

The data is powered by amazing Strenghtlog.

Download

It can be downloaded from NPM.

npm i js-gym

Consume it

The lib has three functions, we will show each in below snippet

import { GymService } from "js-gym"; const gymService = new GymService(); gymService.findByExercise("squat"); // Returns all exercises matching "squat" gymService.getMuscleGroups(); // Returns all muscle groups gymService.getByMuscleGroup("back"); // Returns all exercises for a muscle group

Using require

We can also require the module like below

const { GymService } = require("js-gym"); const gymService = new GymService(); gymService.findByExercise("squat"); gymService.getMuscleGroups(); gymService.getByMuscleGroup("back");

For all available data, please check our API docs.

Feedback

If you have any feedback or feature requests, please contact us here.

signature
See all our articlesSee all our open source projects