Skip to content

Commit

Permalink
Merge pull request #28 from x746e/patch-1
Browse files Browse the repository at this point in the history
Update example in README.md
  • Loading branch information
fossamagna authored Dec 29, 2017
2 parents 12a46cc + 746381c commit 62e59df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ var fs = require('fs');
var gasEntryGenerator = require('gas-entry-generator');

var fooSource = fs.readFileSync('foo.js', {encoding: 'utf8'});
var entryFunction = gasEntryGenerator(source);
// entryFunction is "function foo() {}"
var entryFunction = gasEntryGenerator(fooSource);
console.log(entryFunction); // entryFunction is "function foo() {}"
```

Execute to generate function as entry point.
Expand Down

0 comments on commit 62e59df

Please sign in to comment.