We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7293f6e commit 7686fbbCopy full SHA for 7686fbb
packages/async-rewriter2/bin/async-rewrite.js
@@ -0,0 +1,8 @@
1
+#!/usr/bin/env node
2
+/* eslint-disable strict, no-sync */
3
+'use strict';
4
+const AsyncWriter = require('../').default;
5
+const fs = require('fs');
6
+const input = fs.readFileSync(process.argv[2]);
7
+const asyncWriter = new AsyncWriter();
8
+process.stdout.write(asyncWriter.process(input));
0 commit comments