accountant
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -109,4 +109,6 @@ /** | ||
exports.run = function(){ | ||
var accts = JSON.parse(fs.readFileSync('./accounts.json', 'utf8').replace(/\/\/.*\n/g, '')) //strip comments | ||
exports.run = function(file){ | ||
file = file || './accounts.json' | ||
var accts = JSON.parse(fs.readFileSync(file, 'utf8').replace(/\/\/.*\n/g, '')) //strip comments | ||
, stocks = {} | ||
@@ -113,0 +115,0 @@ , banks = {} |
@@ -5,3 +5,3 @@ { | ||
"description": "Double Entry Accounting", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"repository": { | ||
@@ -20,2 +20,6 @@ "url": "" | ||
"main": "./accountant.js" | ||
, "bin" : { | ||
"acct-ls" : "./scripts/ls.js" | ||
} | ||
} |
11689
7
301
3