diff --git a/parser.js b/parser.js index 9f12905..c5ed514 100644 --- a/parser.js +++ b/parser.js @@ -32,6 +32,10 @@ exports.parseForESLint = function parseForESLint(code, options) { return { ast }; }; +exports.parse = function(code, options) { + return this.parseForESLint(code, options).ast; +}; + // Deep copy. /* istanbul ignore next */ exports.Syntax = (function() {