@apolitical/common-helpers-courses
v1.0.2
Published
Node.js module to format courses
Downloads
1,129
Maintainers
Readme
Common Helpers- Microcourses
Node.js module to expose functionality to reformat microcourses data.
Current function
- isPartnerCourse
- Takes in a microcourse and checks if its a partner course or not.
- orderCoursesIntoSections
- Takes in a microcourse and orders them into different sections
- filterCoursesForDisplay
- Takes in microcourses and remove all ax courses
- filterOutPastCourses
- Takes in microcourses and remove all past courses
- getHumanReadableSectionName
- Formats the section name of a microcourse in a readable way to be displayed to user
- removePartnerCourses
- Takes in microcourses and returns them back without the partner courses