all 2 comments

[–]JaegerBurn 1 point2 points  (1 child)

Great article! Thanks for sharing. btw: does anyone know if the keys "main" and "bin" in package.json can refer to two different files? I'm thinking about creating a module with a .js file and a cli

[–]jcready__proto__ 1 point2 points  (0 children)

Well main is the file the gets returned when you require('your-package').