minecraft-data
Version:
Provide easy access to minecraft data in node.js
15 lines (11 loc) • 379 B
JavaScript
module.exports = forEach
const path = require('path')
const minecraftTypes = ['pc', 'bedrock']
function forEach (f) {
minecraftTypes.forEach(function (type) {
const versions = require('../../../data/' + type + '/common/versions')
versions.forEach(function (version) {
f(path.join(__dirname, '../../../data', type, version), type + ' ' + version)
})
})
}