Now 100x Faster

Read the latest from Gatsby CTO Kyle Mathews Re-introducing Gatsby, a Reactive Site Generator

ContactSign Up for Free
Community Plugin
View plugin on GitHub


Grade Calculator Transformer for GatsbyJS

This transformer converts grades of assessment in text into Gatsby Node.


npm install --save gatsby-transformer-calculator



module.exports = {
  plugins: [
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `data`,
        path: `${__dirname}/src/data/`,

expected input

The input file is expected to be CSV format. It could at least 2 columns.

  • assessment name, it’s optional
  • grade, string, could be in percentage, letters or points
  • weight, number


quiz, 90, 20
midterm, 80, 30
homework, 85, 20
final, 90, 30


A, 30
A-, 30
B, 40

The calculation will not be done here. Check for Grade Calculator for a complete reference of the calculation.

© 2022 Gatsby, Inc.