mercury-examples
Version:
Package with examples and tutorials for the Mercury language
14 lines (11 loc) • 495 B
JavaScript
//
// mercury-examples index.js
//
// main entry for tutorials and examples of Mercury language
// by Timo Hoogland (@tmhglnd), www.timohoogland.com, 2025
//
const fs = require('fs');
// read the json files and export to examples and tutorials
// converted to inline json in the distribution through brfs
exports.Examples = JSON.parse(fs.readFileSync(__dirname + '/data/examples.json', 'utf-8'));
exports.Tutorials = JSON.parse(fs.readFileSync(__dirname + '/data/tutorials.json', 'utf-8'));