Skip to content

Instantly share code, notes, and snippets.

@blackhaj
Created December 20, 2021 20:07
Show Gist options
  • Select an option

  • Save blackhaj/5d8d7a8593093172ae0d98c17a2c9f25 to your computer and use it in GitHub Desktop.

Select an option

Save blackhaj/5d8d7a8593093172ae0d98c17a2c9f25 to your computer and use it in GitHub Desktop.
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