mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-03 23:42:50 +00:00
9 lines
373 B
TypeScript
9 lines
373 B
TypeScript
import { parse, quote } from 'shell-quote';
|
|
|
|
quote([ 'a', 'b c d', '$f', '"g"' ]);
|
|
parse('a "b c" \\$def \'it\\\'s great\'');
|
|
parse('beep --boop="$PWD"', { PWD: '/home/robot' });
|
|
parse('beep --boop="$PWD"', { PWD: '/home/robot' }, { escape: '^' });
|
|
parse('beep --boop="$PWD"', (key: string) => '/home/robot');
|
|
parse('beep --boop="$PWD"', (key: string) => ({ op: '||' }));
|