Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
422 B

"use strict";
var mapping = {};
function register(pairs) {
var keys = Object.keys(pairs);
for (var i = 0; i < keys.length; i++) {
mapping[keys[i]] = pairs[keys[i]];
}
}
function resolve(id) {
var resolved = mapping[id];
if (resolved == null) {
throw new Error('Could not resolve bundle with id ' + id);
}
return resolved;
}
module.exports.register = register;
module.exports.resolve = resolve;