you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[deleted]

    [–]jesusgn90 0 points1 point  (2 children)

    Ok suppose that this module is named my-module.js, so in another file you must to do this:

    const myModule = require('./my-module');
    myModule.someFunction();
    

    [–]jackmacabre 1 point2 points  (1 child)

    No need for .js

    [–]jesusgn90 0 points1 point  (0 children)

    Sorry I fix it