Files
factorio-clusterio/lib/clusterTools/index.js
T
Hornwitser ff3fc3b94b Remove .js suffix in require paths
Remove the .js suffix in require paths to make requires consistent
across the project.
2019-10-28 19:45:34 +01:00

17 lines
423 B
JavaScript

/**
Functions frequently needed from different places in the cluster. Ex:
* Getting an instance's displayname from their ID
*/
module.exports = ({config} = {}) => ({
/**
async function to get an instances displayname from their instanceID
arg1 is the instanceID
Promise resolves with a string, either the displayName or instanceID if not found.
*/
getInstanceName: require("./getInstanceName")(config),
})