Skip to content

Commit

Permalink
Simplify CoffeeScript example
Browse files Browse the repository at this point in the history
Use destructured assignment
  • Loading branch information
kevinsawicki committed Jul 15, 2013
1 parent 815c972 commit 91cf497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -44,7 +44,7 @@ Can't get easier than this, right? This works starting with `xml2js` 0.2.3.
With CoffeeScript it looks like this:

```coffeescript
parseString = require('xml2js').parseString
{parseString} = require 'xml2js'
xml = "<root>Hello xml2js!</root>"
parseString xml, (err, result) ->
console.dir result
Expand Down

0 comments on commit 91cf497

Please sign in to comment.