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 - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -