ast-module-types

Collection of useful helper functions when trying to determine module type (CommonJS or AMD) properties of an AST node.

whence

Add context awareness to your apps and frameworks by safely evaluating user-defined conditional expressions. Useful for evaluating expressions in config files, prompts, key bindings, completions, templates, and many other user cases.