UNPKG
kvell-scripts
Version:
latest (1.0.1-alpha.9.3.1)
1.0.1-alpha.9.3.1
1.0.1-alpha.9.2
1.0.1-alpha.9.1
1.0.1-alpha.9
1.0.1-alpha.8.1
1.0.1-alpha.8
1.0.1-alpha.7
1.0.1-alpha.6
1.0.1-alpha.5
1.0.1-alpha.4
1.0.1-alpha.3
1.0.1-alpha.2
1.0.1-alpha.1
1.0.1-1.0.1-alpha.5.0
1.0.0-alpha.0
Scripts to run applications generated from create-kvell-app
kvelljs.now.sh
nsharma1396/kvell
kvell-scripts
/
scripts
/
utils
/
resolveDBPlugin.js
14 lines
(11 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
{ pathExistsSync } =
require
(
"../utils/fsWrapper"
);
const
resolveDBPlugin
= pluginPath => {
let
plugin;
if
(
pathExistsSync
(pluginPath)) { plugin =
require
(pluginPath); }
else
{
return
false
; }
return
plugin; };
module
.
exports
= resolveDBPlugin;