Skip to content

Commit

Permalink
Removed dependency on dotenv, kind of overkill
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugal committed Mar 6, 2016
1 parent 05f21a5 commit 20e2eec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
.env
jugalshahx-a726a24b46ff.json
credFile.json
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
},
"homepage": "https://github.com/jugaltheshah/visionapitest#readme",
"dependencies": {
"dotenv": "^2.0.0",
"google-vision-api-client": "0.0.2"
}
}
3 changes: 1 addition & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
require('dotenv').config();
var vision = require('google-vision-api-client');
var requtil = vision.requtil;

//Prepare your service account from trust preview certificated project
var jsonfile = process.env.credFile; //'/path-to-your-service-account.json';
var jsonfile = 'credFile.json';

//Initialize the api
vision.init(jsonfile);
Expand Down

0 comments on commit 20e2eec

Please sign in to comment.