cloudinary-push
Advanced tools
Comparing version 1.1.5 to 1.1.6
const fs = require('fs'); | ||
const path = require('path'); | ||
module.exports.getConfig = function () { | ||
const config = JSON.parse(fs.readFileSync('./db.json')); | ||
const config = JSON.parse(fs.readFileSync(path.join(__dirname, './db.json'))); | ||
return config; | ||
@@ -9,3 +10,3 @@ } | ||
module.exports.storeConfig = function(config){ | ||
fs.writeFileSync('./db.json', JSON.stringify(config)); | ||
fs.writeFileSync(path.join(__dirname, './db.json'), JSON.stringify(config)); | ||
} | ||
@@ -12,0 +13,0 @@ |
{ | ||
"name": "cloudinary-push", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -1,2 +0,2 @@ | ||
## coudinary-push | ||
## cloudinary-push | ||
@@ -3,0 +3,0 @@ Cloudinary command line tool to upload images to cloudinary cdn from terminal. Currently only image upload is supported, feel free to contibute. |
77
4922
6