marklogic
Version:
The official MarkLogic Node.js client API.
28 lines (25 loc) • 530 B
JavaScript
/*
* Copyright (c) 2015-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
*/
;
function library(libname) {
if (libname == null) {
return null;
}
try {
return require(libname);
} catch(e) {
return null;
}
}
function libraryProperty(libname, propertyName) {
const lib = library(libname);
if (lib == null) {
return null;
}
return lib[propertyName];
}
module.exports = {
library: library,
libraryProperty: libraryProperty
};