@openveo/rest-nodejs-client
Version:
NodeJS REST client for OpenVeo Web Service
9 lines (6 loc) • 328 B
JavaScript
const path = require('path');
// Set module's root directory and define a requireRestClient method to load scripts from project's root directory
// instead of using relative paths
process.rootRestClient = __dirname;
process.requireRestClient = (filePath) => require(path.join(process.rootRestClient, filePath));
;