Skip to content

Commit

Permalink
fixed opening of package a bunch of times
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmueller committed Apr 14, 2012
1 parent 1efdf9c commit 077274d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@ exports = module.exports = require('./lib/cheerio');
/*
Export the version
*/

var version = function() {
var pkg = require('fs').readFileSync(__dirname + '/package.json', 'utf8');
return JSON.parse(pkg).version;
};

exports.__defineGetter__('version', version);
exports.version = require(__dirname + '/package.json').version;

0 comments on commit 077274d

Please sign in to comment.