UNPKG
monafy
Version:
latest (0.0.1)
0.0.1
Make configurable canvas easily with Monafy
github.com/Nirimo
monafy
/
test
/
index.js
12 lines
(9 loc)
•
263 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
fs =
require
(
"fs"
);
const
file =
require
(
"./codes/rank"
);
const
main =
async
function
(
) {
const
image =
await
file.
image
(); fs.
writeFile
(
`./test/images/
${file.name}
.png`
, image.
toBuffer
(),
(
err
) =>
{
if
(err)
throw
err; }); }
main
();