0.1.2 • Published 3 years ago

@ladrillo/total-score v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@ladrillo/total-score

About

Canvas courses can export the grade book as a CSV file, but there are usually too many fields. This lib uses the CSV file obtained from Canvas to generate, in the same directory, a new CSV file and a JSON file, containing only the desired fields. This library fits my particular use case, but you can monkey-patch it to fit yours.

Using @ladrillo/total-score

npx @ladrillo/total-score@lastest ./foo.csv          # relative path
npx @ladrillo/total-score@lastest foo.csv            # relative path
npx @ladrillo/total-score@lastest /Users/foo/foo.csv # absolute path

Monkey-Patching @ladrillo/total-score

Edit ./src/fields.js file and include in the exported array regular expressions matching the fields you wish to keep from the CSV obtained from the Canvas grade book.

module.exports = [
  [/^student$/i, "student"],
  [/^module 1 project/i, "module_1"],
  [/^module 2 project/i, "module_2"],
  [/^module 3 project/i, "module_3"],
  [/^module 4 project/i, "module_4"],
  [/^cfu questions final score$/i, "cfu_questions"],
  [/^sprint assessment final score$/i, "sprint_assessment"],
  [/^sprint challenge submissions final score$/i, "sprint_challenge"],
  [/^final score$/i, "total_score"],
]
0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago