aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src/utils/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sol-compiler/src/utils/utils.ts')
-rw-r--r--packages/sol-compiler/src/utils/utils.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/sol-compiler/src/utils/utils.ts b/packages/sol-compiler/src/utils/utils.ts
new file mode 100644
index 000000000..9b1e59f9d
--- /dev/null
+++ b/packages/sol-compiler/src/utils/utils.ts
@@ -0,0 +1,8 @@
+export const utils = {
+ stringifyWithFormatting(obj: any): string {
+ const jsonReplacer: null = null;
+ const numberOfJsonSpaces = 4;
+ const stringifiedObj = JSON.stringify(obj, jsonReplacer, numberOfJsonSpaces);
+ return stringifiedObj;
+ },
+};