Posts tagged with “npm”

Structuring Library Functionality in Node.js Projects

Requiring files in Node.js comes in two varieties: The code you write, that is required by a relative path, and the code from the community (or your own packages), that live as node modules, and are required by module name. But what about library functionality, that gets used all over your application? Is there a better way to include this repeated functionality in your code than a bunch of relative paths?

Authored on October 15, 2013

Hello, I'm Andrew Winder. I work at Message Systems as a Senior Software Engineer, and I blog here about AngularJS, Node.js, and other technical topics. All opinions are my own.