Created
December 20, 2021 20:07
-
-
Save blackhaj/5d8d7a8593093172ae0d98c17a2c9f25 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import '@johnlindquist/kit'; | |
| const prettier = await npm('prettier'); | |
| // Name: json-formatter | |
| // Author: Henry Black | |
| // Twitter: @hajblack | |
| const unformattedJson = await paste(); | |
| const result = await prettier.format(unformattedJson, { | |
| parser: 'json', | |
| }); | |
| await copy(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment