mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +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
|
|
@ -9,14 +9,11 @@
|
|||
|
||||
Util = require(DIR_LIB + 'util'),
|
||||
|
||||
tryRequire = require(DIR + 'tryRequire'),
|
||||
tryOptions = {log: true, exit: true},
|
||||
mellow = require('mellow'),
|
||||
pipe = require('pipe-io'),
|
||||
ponse = require('ponse'),
|
||||
|
||||
mellow = tryRequire('mellow', tryOptions),
|
||||
pipe = tryRequire('pipe-io', tryOptions),
|
||||
ponse = tryRequire('ponse', tryOptions),
|
||||
|
||||
marked = tryRequire('marked');
|
||||
marked = require('marked');
|
||||
|
||||
module.exports = function(name, request, callback) {
|
||||
var query,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue