Quantumbraid's picture
download
raw
607 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:
607 Bytes
·
Xet hash:
b8b37e293b10cc654ffb9b1d8b10a59c9ef6d7f9969951b61fb731ea2154caa0

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