🚀 add emojis

This commit is contained in:
platane
2020-10-15 01:04:31 +02:00
parent 335757dc9d
commit ddcb1ae97c
5 changed files with 23 additions and 4 deletions

View File

@@ -1,5 +1,17 @@
import * as fs from "fs";
import * as path from "path";
import { generateContributionSnake } from "../generateContributionSnake";
generateContributionSnake("platane").then((buffer) => {
process.stdout.write(buffer);
});
const dir = path.resolve(process.cwd(), "__tests__", "__snapshots__");
try {
fs.mkdirSync(dir);
} catch (err) {}
(async () => {
const output = path.join(dir, "out.gif");
const buffer = await generateContributionSnake("platane");
console.log("💾 writing to", dir);
fs.writeFileSync(output, buffer);
})();