Hi Frank!
There are two options:
1) package
2) initializer
First one preferred in case if this code is common and would be shared
between different projects. Second option is for project-wide tools,
just for single project, not common code.
Guidelines.
1. Package
Create regular package, which exports `init` method:
exports.init = function () {
// add tools here
railway.tools.mySuperCoolTool = function () {};
};
2. initializer
Put your code to config/initializers/ directory, for example: config/
initializers/tools.js
railway.tools.mySuperCoolTool = function () {};
Good luck,
Anatoliy