superdesk/superdesk-client-core

View on GitHub
tasks/get-module-directory.js

Summary

Maintainability
A
0 mins
Test Coverage
var path = require('path');

function getModuleDir(moduleName) {
    return path.join(require.resolve(moduleName + '/package.json'), '../');
}

module.exports = {
    getModuleDir: getModuleDir,
};