Permalink
Browse files

Merge pull request #92 from kevinsawicki/patch-2

Simplify CoffeeScript example
  • Loading branch information...
2 parents 815c972 + 91cf497 commit a7cd5a3e9955a817dabcacdbc462185c3ac5d6de @Leonidas-from-XIV committed Jul 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -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

0 comments on commit a7cd5a3

Please sign in to comment.