Is there a certain way to tell if a javascript module or library is meant to be used on the browser or on node/deno environment?
I know that library authors can use the browser field in package.json
to signal that a library depends on browser APIs that aren't available in node environment. Are there any other fields that are used to signal the opposite (i.e. a library can only be used in node).
Specifically, how can one tell, by just looking at the code, if the Angular library for example, or this javascript library is for node or for browser, or both?