A parser of assessment items written in GIFT format, implements Moodle 3.4 spec.
- Vanilla isomorphic JavaScript, no dependencies.
- Available in ES6, CommonJS and minified UMD formats.
var blockStrings = gift.Question.splitBlocks('2 * 3 equals {~5 =6 ~8 ~23}')
var block = gift.Block.fromString('{~5 =6 ~8 ~23}')
Built with love and rollup/bublé.
- Ensure tests are passed and linter does not have errors.
- Build the package:
yarn build
. It creates files indist/
. - Update the version in package.json.
- Commit changes with 'REL:' prefix and tag the commit with 'v<pkg.version>' tag, e.g.
v1.0.0
. - Publish the package
npm publish
.