parse-js 0.24.0

JavaScript parsing library
Documentation
{
  "$t": "FunctionDecl",
  "export": false,
  "export_default": false,
  "function": {
    "$t": "Function",
    "arrow": false,
    "async_": false,
    "body": {
      "$t": "FunctionBody",
      "body": [
        {
          "$t": "ExpressionStmt",
          "expression": {
            "$t": "UnaryExpr",
            "argument": {
              "$t": "LiteralNumberExpr",
              "value": 1.0
            },
            "operator": "Yield",
            "parenthesised": false
          }
        }
      ]
    },
    "generator": true,
    "parameters": []
  },
  "name": {
    "$t": "ClassOrFunctionName",
    "name": "a"
  }
}