In the Readme your usage example has the file source being passed to the parse function and then the value property on the return object is passed to the ast function. However in the code ast has the shape of (source: String, type: String) => tree and seems to call parse internally. Not sure if the readme is out of date or if you need to update the ast function.