Adopt node js coding patterns