{"size": 991, "ext": "js", "max_stars_repo_path": "day-3/fs.js", "max_stars_repo_name": "shahhardik4599/15-Days-Internship", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "day-3/fs.js", "max_issues_repo_name": "shahhardik4599/15-Days-Internship", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "day-3/fs.js", "max_forks_repo_name": "shahhardik4599/15-Days-Internship", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.2244897959, "max_line_length": 64, "alphanum_fraction": 0.6064581231}
const fs = require('fs');
const path = require('path');

fs.mkdir(path.join(__dirname, ' test'), (err) => {
    if(err){
        return console.log(err);
    }
    console.log('directory created sucessfuly');
});

/* open file
var fs = require('fs');
fs.open('demo.js','w',function(err , file){
    if(err) throw err;
    console.log('file opned in write mode');
});
*/

/*creat file
var fs = require('fs');
fs.writeFile('test.txt' , 'Hello wordl', function(err){
    if(err) throw err;
    console.log('file created');
});
*/

/*appened file
var fs = require('fs');
fs.appendFile('test.txt' , 'This is second line', function(err){
    if(err) throw err;
    console.log('file appeneded');
});
*/

/*rename file
var fs = require('fs');
fs.rename('test.txt' , 'renamed.txt', function(err){
    if(err) throw err;
    console.log('file renamed');
});
*/

/*delete file
var fs = require('fs');
fs.unlink('test.txt' , function(err){
    if(err) throw err;
    console.log('file deleted');
});
*/