moduletype

moduletype JS library on GitHub moduletype JS library on npm Download moduletype JS library

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'.

Version 0.0.8 License MIT
moduletype has no homepage
moduletype JS library on GitHub
moduletype JS library on npm
Download moduletype JS library
Keywords
module patternmodule typerequiresimportcommonjses6esmamd