Buckets:
| var js2xml = require('./js2xml.js'); | |
| module.exports = function (json, options) { | |
| if (json instanceof Buffer) { | |
| json = json.toString(); | |
| } | |
| var js = null; | |
| if (typeof (json) === 'string') { | |
| try { | |
| js = JSON.parse(json); | |
| } catch (e) { | |
| throw new Error('The JSON structure is invalid'); | |
| } | |
| } else { | |
| js = json; | |
| } | |
| return js2xml(js, options); | |
| }; | |
Xet Storage Details
- Size:
- 399 Bytes
- Xet hash:
- 67c0b79a1d6cfeb38f5362b79bdb8e88f8285afd2345b41876dad1dd3b5e1d22
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.