Hacker News new | ask | show | jobs
by ec109685 977 days ago
Is there a “canonical” example of a module that is written well and uses what most would consider best practices?

When looking through npm modules, there still seems to be a variety of approaches.

1 comments

Canonical? Best practices? Not that I’m aware of. Not in Node.

Deno has some ideas though:

> Don’t import any symbol with an underscore prefix: export function _baz() {}.

> Don’t link to / import any module whose path […] Has a name or parent with an underscore prefix: _foo.ts, _util/bar.ts.

https://deno.land/std@0.204.0