Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Frs2304 authored Feb 8, 2023
1 parent b677518 commit 268c789
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const jsonfile = require('jsonfile')
const moment = require('moment')
const simpleGit = require('simple-git')
const jsonfile = require('jsonfile');
const moment = require('moment');
const simpleGit = require('simple-git');
const FILE_PATH = 'C:\Users\Tushar Mishra\Json\Json\data.json'
const DATE = moment().subtract(1,'d').format()
const DATE = moment().subtract(1,'d').format();
const data = {
date : DATE
}
jsonfile.writeFile(FILE_PATH,data)
simpleGit().add([FILE_PATH]).commit(DATE,{'--date': DATE}).push()
jsonfile.writeFile(FILE_PATH,data);
simpleGit().add([FILE_PATH]).commit(DATE,{'--date': DATE}).push();

0 comments on commit 268c789

Please sign in to comment.