Skip to content

Commit

Permalink
Switching the quotes to keep the exclamation mark
Browse files Browse the repository at this point in the history
Switching the quotes around in the line
`echo "console.log('Hello, world!')" | ts-node`
to get the line as
`echo 'console.log("Hello, world!")' | ts-node`
in order to keep the exclamation mark, while also
avoiding the bash error at the same time.
  • Loading branch information
abraj committed Jan 13, 2020
1 parent d53ab0c commit a15c795
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 @@ -37,7 +37,7 @@ ts-node -e 'console.log("Hello, world!")'
ts-node -p -e '"Hello, world!"'

# Pipe scripts to execute with TypeScript.
echo "console.log('Hello, world')" | ts-node
echo 'console.log("Hello, world!")' | ts-node
```

![TypeScript REPL](https://github.com/TypeStrong/ts-node/raw/master/screenshot.png)
Expand Down

0 comments on commit a15c795

Please sign in to comment.