convert from require style to node style