Files
snk/packages/action/__tests__/dev.ts
platane 89e2630eec 🚀 use ts node
2020-10-16 18:54:09 +02:00

13 lines
357 B
TypeScript

import * as fs from "fs";
import * as path from "path";
import { generateContributionSnake } from "../generateContributionSnake";
(async () => {
const output = path.join(__dirname, "__snapshots__/out.gif");
const buffer = await generateContributionSnake("platane");
console.log("💾 writing to", output);
fs.writeFileSync(output, buffer);
})();