From ce9a82c194cad3c89c13928fa6ff82fdeddcba04 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 7 Dec 2014 21:58:36 +1100 Subject: [PATCH] add docs for `ast` and `code` option --- doc/usage.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/usage.md b/doc/usage.md index 4a474def03..7db7c636fc 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -159,7 +159,17 @@ to5.transformFile("filename.js", options, function (err, result) { // Enable support for experimental ES7 features // Default: false - experimental: true + experimental: true, + + // Set this to `false` if you don't want the transformed AST in the returned + // result + // Default: true + ast: true, + + // Set this to `false` if you don't want the transformed code in the returned + // result + // Default: true + code: true } ```