Last active
September 27, 2023 15:37
-
-
Save hotwatermorning/77e163e02e7adea3753b17a7d27dd3ad to your computer and use it in GitHub Desktop.
文字列を JSON.stringify するワンライナー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /dev/stdin | node -e 'console.log( JSON.stringify(require("fs").readFileSync("/dev/stdin", "utf-8")) );' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment