Skip to content

Instantly share code, notes, and snippets.

@MajorBreakfast
Last active December 27, 2015 11:09
Show Gist options
  • Save MajorBreakfast/7317003 to your computer and use it in GitHub Desktop.
Save MajorBreakfast/7317003 to your computer and use it in GitHub Desktop.
Dasherized file/foldernames

Popular node packages that use dasherized names in the file system.

(Click to see a sample dasherized file from that project)

Most packages use dasherized names internally. But camel case and snake case are also quite common.

Two advantages:

  • Almost all node modules have a dasherized package name. Using dahserized names also for local imports makes sense.
  • Some files end up in a url. Almost all big sites have dasherized urls. The Verge, Engadget, NYTimes, ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment