jprichardson / node-jsonfile

Easily read/write JSON files.
MIT License
1.2k stars 321 forks source link

Shorten the names of read/write functions #46

Closed pinn3 closed 7 years ago

pinn3 commented 8 years ago

readFile and writeFile feels kind of given, since the package is called jsonfile and it's purpose to handle files. The same goes for writeFileSync

Is there any reasoning for why the aren't called just read and write? The whole file suffix seems redundant otherwise.

tankerkiller125 commented 8 years ago

@pinn3 I believe that the current names are used to conform with the standard that people expect from nodejs fs so that they don't need to remember that its different.

RyanZim commented 7 years ago

Yep, closing as per @tankerkiller125's comment.