Skip to content

Commit

Permalink
actually fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RealCyGuy committed Mar 31, 2021
1 parent 6632d9b commit 4961d08
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const boxen = require("boxen");
const indentString = require("indent-string");
const chalk = require("chalk");
const prompt = require("prompt");
const version = require('./package.json');
const version = require("./package.json");
const fs = require("fs");

program
.version(version.version, "-v --version")
Expand Down Expand Up @@ -48,7 +49,11 @@ program
image
.metadata()
.then((metadata) => {
image.resize(Math.round(metadata.width / 2)).toFile(file);
let buffer = image
.resize(Math.round(metadata.width / 2))
.toBuffer(function (err, buffer) {
fs.writeFile(file, buffer, function (e) {});
});
console.log(
chalk.green("Success: Replaced file ") + "(" + file + ")"
);
Expand Down
7 changes: 5 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smoothosu",
"version": "1.0.1",
"version": "1.0.2",
"description": "Make your osu cursors smooth!",
"main": "index.js",
"scripts": {},
Expand Down

0 comments on commit 4961d08

Please sign in to comment.