Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / test / test-79-npm / sax / sax.js
219 bytesRaw
1 | ; |
2 | |
3 | var sax = require('sax'); |
4 | var parser = sax.parser(true); |
5 | |
6 | parser.onopentag = function (node) { |
7 | if (node.name === 'hello') { |
8 | console.log('ok'); |
9 | } |
10 | }; |
11 | |
12 | parser.write('<hello>World!</hello>').close(); |
13 |
Built with git-ssb-web