ast-module-types (npm): Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.
Keywords: esprima|module|type|define|require|factory|amd|ast|commonjs|es6