Comparing version 1.0.7 to 1.0.8
32
cli.js
@@ -5,12 +5,34 @@ #!/usr/bin/env node | ||
var jsonfile = require('jsonfile') | ||
const argv = require('yargs').argv; | ||
const argv = require('yargs').argv | ||
var json = require('json-update'); | ||
var file = '/tmp/data.json' | ||
var obj = {type: argv.process, ntimes: argv.loops , nInterval: argv.duration } | ||
//var obj = {"type":argv.pro,"nTimes":argv.lo,"nIntervals":argv.du} | ||
/* | ||
jsonfile.writeFile(file, obj, function (err) { | ||
console.error(err) | ||
}) | ||
*/ | ||
var obj = {type:argv.pro,nTimes:argv.lo,nIntervals:argv.du} | ||
json.update('tmp/data.json',obj) | ||
.then(function(dat) { | ||
console.log(dat) | ||
jsonfile.writeFile(file, obj, function (err) { | ||
console.error(err) | ||
}); | ||
/* | ||
var file = '/Users/ssjain/WebstormProjects/bears/data.json'; | ||
jsonfile.readFile(file, function(err, obj) { | ||
console.log('read here') | ||
console.dir(obj.type) | ||
}) | ||
*/ | ||
/* | ||
if (argv.lo > 3 && argv.distance < 53.5) { | ||
console.log('Plunder more riffiwobbles!') | ||
} else { | ||
console.log('Retreat from the xupptumblers!') | ||
} | ||
*/ | ||
@@ -17,0 +39,0 @@ |
{ | ||
"name": "bears", | ||
"version": "1.0.7", | ||
"description": "revert", | ||
"version": "1.0.8", | ||
"description": "update work", | ||
"main": "cli.js", | ||
@@ -6,0 +6,0 @@ "bin": { |
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
17061
6
51