{"size": 362, "ext": "js", "max_stars_repo_path": "node/test/files/path/app.js", "max_stars_repo_name": "VictorKayk/JavaScript", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node/test/files/path/app.js", "max_issues_repo_name": "VictorKayk/JavaScript", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node/test/files/path/app.js", "max_forks_repo_name": "VictorKayk/JavaScript", "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": 32.9090909091, "max_line_length": 67, "alphanum_fraction": 0.7071823204}
const fs = require('fs');
const path = require('path');

const filePath = `${__dirname}/test.txt`;

fs.openSync(filePath, 'a+');

console.log('Absolute path: ', path.dirname(filePath));
console.log('Basename: ', path.basename(filePath));
console.log('Extention name: ', path.extname(filePath));
console.log('Relative path: ', path.relative(filePath, __dirname));