Comparing version 1.0.2 to 1.0.3
11
cli.js
@@ -5,10 +5,19 @@ #!/usr/bin/env node | ||
var jsonfile = require('jsonfile') | ||
json = require('json-update'); | ||
const argv = require('yargs').argv; | ||
var file = '/tmp/data.json' | ||
var obj = {type: argv.process, ntimes: argv.loops , nInterval: argv.duration } | ||
var obj = {type: argv.process, nTime: argv.loops , nInterval: argv.durations} | ||
json.update(file,obj) | ||
.then(function(dat) { | ||
console.log(dat.type, dat.nTime , dat.nInterval) | ||
}); | ||
/* | ||
jsonfile.writeFile(file, obj, function (err) { | ||
console.error(err) | ||
}) | ||
*/ | ||
@@ -15,0 +24,0 @@ |
{ | ||
"name": "bears", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "cli.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16571
35