mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(tryrequire) add from npm
This commit is contained in:
parent
102ec0731a
commit
7fe855edfe
9 changed files with 13 additions and 56 deletions
|
|
@ -12,7 +12,7 @@
|
|||
config = require(DIR_SERVER + 'config'),
|
||||
express = require(DIR_SERVER + 'express'),
|
||||
|
||||
tryRequire = require(DIR_SERVER + 'tryRequire'),
|
||||
tryRequire = require('tryrequire'),
|
||||
|
||||
io = tryRequire('socket.io', {log: true});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue