Skip to content

Commit

Permalink
docs: fix command strings example (#44)
Browse files Browse the repository at this point in the history
Renamed tokenize function to tokenizeArgs
  • Loading branch information
TrySound authored Dec 23, 2024
1 parent 3b07903 commit 40327fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ import {x} from 'tinyexec';
import {tokenizeArgs} from 'args-tokenizer';

const commandString = 'echo "Hello, World!"';
const [command, ...args] = tokenize(commandString);
const [command, ...args] = tokenizeArgs(commandString);
const result = await x(command, args);

result.stdout; // Hello, World!
Expand Down

0 comments on commit 40327fd

Please sign in to comment.