npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Why package-lock.json use "-" and node_modules use "_" ?

This question came to mind today when I was naming a folder in my new project - it’s my own project so I get to decide how to name things, and I want to decide on a good practice to stick to.

So I’m just wondering, was there a reason package-lock.json use " - " and node_modules use " _ " ?When do you " - " and when do you use " _ "?