Example usage var the_boring_package = require('the-boring-package') the_boring_package.printMsg(); console.log(the_boring_package.data);