This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to work with node version 10.20.1 LTS (#5)
* Changed to ES6 initial refactor * fixed const/var declarations * Refactored tools.js added async functions * fixed async functions on tools.js * fixed async/await functions on tools.js * fixed error catching on tools.js * fixed directory naming on tools.js Co-authored-by: root <root@jitsi.alvin.tech>
- Loading branch information
1 parent
c99b28b
commit b055c47
Showing
6 changed files
with
299 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
check_existing_config_file: function(){ | ||
check_existing_config_file: _ => { | ||
return fs.existsSync(path.join(process.cwd(), "scripts.json")); | ||
}, | ||
check_existing_resource_folder: function(){ | ||
check_existing_resource_folder: _ => { | ||
return fs.existsSync(path.join(process.cwd(), "resources")); | ||
}, | ||
get_config_file: function(){ | ||
get_config_file: _ => { | ||
return require(path.join(process.cwd(), "scripts.json")); | ||
}, | ||
set_config_file: function(data){ | ||
set_config_file: (data) => { | ||
fs.writeFileSync(path.join(process.cwd(), "scripts.json"), data); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.