@apolitical/common-helpers-courses

Node.js module to format courses

Usage no npm install needed!

<script type="module">
  import apoliticalCommonHelpersCourses from 'https://cdn.skypack.dev/@apolitical/common-helpers-courses';
</script>

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