The source code to the civic tech project Öppna Skolplattformen.
Go to file
Johan Öbrink bf5de596b7 chore: 🤖 Updated package with files 2021-04-12 18:35:12 +02:00
.github/workflows feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
src feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
.eslintrc.js feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
.gitignore feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
.prettierrc feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
.releaserc feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
LICENSE Initial commit 2021-04-12 18:19:17 +02:00
README.md docs: ✏️ Simple instructions 2021-04-12 18:26:57 +02:00
jest.config.js feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
package.json chore: 🤖 Updated package with files 2021-04-12 18:35:12 +02:00
tsconfig.eslint.json feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
tsconfig.json feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
yarn.lock feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00

README.md

curriculum

Translations of curriculum codes to clear text descriptions

Installing

npm i -S @skolplattformen/embedded-api or yarn add @skolplattformen/embedded-api

Calling

import parse from '@skolplattformen/curriculum'

parse('MU') // { code: 'MU', category: '', name: 'Musik' }
parse('M1SP') // { code: 'M1SP', category: 'Moderna språk, elevens val', name: 'Spanska' }
parse('M2TY') // { code: 'M2TY', category: 'Moderna språk, språkval', name: 'Tyska' }
parse('MLSMI') // { code: 'M2TY', category: 'Modersmål', name: 'Samiska' }