MCPcopy Index your code
hub / github.com/node-config/node-config / _toAbsolutePath

Function _toAbsolutePath

lib/util.js:1451–1457  ·  view source on GitHub ↗
(configDir)

Source from the content-addressed store, hash-verified

1449
1450// Helper functions shared across object members
1451function _toAbsolutePath (configDir) {
1452 if (configDir.indexOf('.') === 0) {
1453 return Path.join(process.cwd(), configDir);
1454 }
1455
1456 return configDir;
1457}
1458
1459function _loadParser(name, dir = process.cwd()) {
1460 if (name === undefined) {

Callers 3

loadFileConfigsMethod · 0.85
locateMatchingFilesMethod · 0.85
_loadParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected