Buckets:
| ; | |
| const utils = require('./utils'); | |
| module.exports = (ast, options = {}) => { | |
| const stringify = (node, parent = {}) => { | |
| const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); | |
| const invalidNode = node.invalid === true && options.escapeInvalid === true; | |
| let output = ''; | |
| if (node.value) { | |
| if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { | |
| return '\\' + node.value; | |
| } | |
| return node.value; | |
| } | |
| if (node.value) { | |
| return node.value; | |
| } | |
| if (node.nodes) { | |
| for (const child of node.nodes) { | |
| output += stringify(child); | |
| } | |
| } | |
| return output; | |
| }; | |
| return stringify(ast); | |
| }; | |
Xet Storage Details
- Size:
- 708 Bytes
- Xet hash:
- 623481ee13b6c0a48a95bf19e3050952642d8eb7be27b0b1bff1755e1d377b16
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.