| Server IP : 74.208.250.37 / Your IP : 216.73.216.114 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : miferval ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/doc/node-braces/examples/ |
Upload File : |
'use strict';
// const input = 'foo/{a,bar/{b,c},d}';
// const input = 'a/{b,c{x,y}}/d';
// const input = '{{x,y},/{b,c{x,y}d,e}/f}';
// const input = '{{a,b}/{b,c{x,y}d,e}/f,x,z}';
// const input = 'a/{b,c}/d';
// const ast = parse(input);
// console.log(ast)
// console.log(JSON.stringify(ast.queue));
// console.log('EXPECTED:', [ 'a/b/f', 'a/cxd/f', 'a/cyd/f', 'a/e/f' ]);
// console.log(JSON.stringify(ast, null, 2))
// console.log(expand(ast));
// expand(ast);
// const sets = parse('foo/{a/b,{c,d,{x..z},e},f}/bar');
// const sets = parse('{a,{c,d}');
// console.log(sets.nodes[2]);
// console.log(compile(sets));
// const range = parse(']{a..e,z}');
// console.log(range.nodes[2]);
// console.log(braces.expand(']{a..e,z}'))
// console.log(compile(range));
// console.log(parse('[abc]'))