forked from xmppjs/ltx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
44 lines (34 loc) · 1.09 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'use strict'
var parse = require('./lib/parse')
var Parser = require('./lib/Parser')
var escape = require('./lib/escape')
var Element = require('./lib/Element')
var equal = require('./lib/equal')
var createElement = require('./lib/createElement')
var tag = require('./lib/tag')
var tagString = require('./lib/tagString')
var is = require('./lib/is')
var clone = require('./lib/clone')
var stringify = require('./lib/stringify')
exports = module.exports = function ltx () {
return tag.apply(null, arguments)
}
exports.Element = Element
exports.equal = equal.equal
exports.nameEqual = equal.name
exports.attrsEqual = equal.attrs
exports.childrenEqual = equal.children
exports.isNode = is.isNode
exports.isElement = is.isElement
exports.isText = is.isText
exports.clone = clone
exports.createElement = createElement
exports.escapeXML = escape.escapeXML
exports.unescapeXML = escape.unescapeXML
exports.escapeXMLText = escape.escapeXMLText
exports.unescapeXMLText = escape.unescapeXMLText
exports.Parser = Parser
exports.parse = parse
exports.tag = tag
exports.tagString = tagString
exports.stringify = stringify