TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Poll: Node.js module file name convention

1 pointsby thomasreggiover 10 years ago
I've been interested in Node.js's file naming convention for modules with two words. When using require() to include files in your projects, what convention do you abide by? Because you can't use hyphen within a variable name doesn't it seem a little silly? Should the variable name match the module file name? Node.js seams to abide by using the underscore. What do you prefer and why?

no comments

no comments