Quantumbraid's picture
download
raw
594 Bytes
var parse = require('./parse')
var walk = require('./walk')
var stringify = require('./stringify')
function ValueParser(value) {
if (this instanceof ValueParser) {
this.nodes = parse(value)
return this
}
return new ValueParser(value)
}
ValueParser.prototype.toString = function () {
return Array.isArray(this.nodes) ? stringify(this.nodes) : ''
}
ValueParser.prototype.walk = function (cb, bubble) {
walk(this.nodes, cb, bubble)
return this
}
ValueParser.unit = require('./unit')
ValueParser.walk = walk
ValueParser.stringify = stringify
module.exports = ValueParser

Xet Storage Details

Size:
594 Bytes
·
Xet hash:
63bb4edc468aaadf03ad13efc1f0d1b7d9e4a4912e4780b9bb7cd4f6ae1b7fa8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.