mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Remove the .js suffix in require paths to make requires consistent across the project.
17 lines
423 B
JavaScript
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),
|
|
})
|