Andy Jarrett // Code. Develop. Create.

Node.js Style Guide

Node.js style github.com/felixge/node-style-guide to help you/team keep consistent which I'm happy about as it generally follows a style I prefer

This is a guide for writing consistent and aesthetically pleasing node.js code. It is inspired by what is popular within the community, and flavored with some personal opinions

* 2 Spaces for indention

  • Use Semicolons
  • Use single quotes, unless you are writing JSON.
  • Opening braces go on the same line < you know it makes sense
  • Declare one variable per var statement < you know it makes sense
  • Use lowerCamelCase for variables, properties and function names

and it goes on .....

I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee. Your support keeps this site running and the coffee brewing! ☕️