moduletype (npm): Pass in the string representation of a file to get the file's module pattern. `moduletype` returns the module pattern type used by a script, for example 'cjs' or 'esm'.
Keywords: module pattern|module type|requires|import|commonjs|es6|esm|amd