node.js - What is the naming convention of NodeJS? -


i found naming conversion of node little strange. instance, in file system module, read link function's letters lower cased:

fs.readlink 

but read file function's name camelized:

fs.readfile 

it confused me. after mistyping times, think shoud ask. there naming convention me memorize api names?

node's default convention camelcase. functions in file system module named according respective posix c interface functions. example readdir, readlink. these functions names well-known linux developers , therefore it's decided use them is(as single word), without camelizing.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -