Skip to content

Commit 7686fbb

Browse files
authored
chore(async-rewriter2): add small helper cli for testing (#798)
I’ve used this during development a few times recently, so it might make sense to just commit it.
1 parent 7293f6e commit 7686fbb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)