Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I dunno, I feel like 'module' communicates something that is only code, while 'package' - but this is my JS experience speaking - implies it may also contain non-code files like docs, tests, examples, configuration files, html, etc that aren't directly used by the application importing them.


Modules = Lego bricks used to build bigger Lego artifacts

Package = Lego bricks (probably share a theme and are meant to build something concrete together), shipped with instructions and media and whatnot, in a, well, whole package.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: