/
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
vizion
/
lib
/
/usr/local/lib/node_modules/pm2/node_modules/vizion/lib
mkdir
upload
Name
Size
Mode
Actions
git/
-
0755
rm
hg/
-
0755
rm
svn/
-
0755
rm
cliCommand.js
2501
0644
edit
dl
rm
helper.js
611
0644
edit
dl
rm
identify.js
484
0644
edit
dl
rm
vizion.js
2251
0644
edit
dl
rm
Edit:
/usr/local/lib/node_modules/pm2/node_modules/vizion/lib/helper.js
(611B)
function trimNewLine(input) { return typeof(input) === 'string' ? input.replace(/\n/g, '') : input; } function get(object, path) { const pathArray = path.split('.'); let result = object; while (result != null && pathArray.length) { const pathItem = pathArray.shift(); if (pathItem in result) { result = result[pathItem]; } else { return undefined; } } return result; } function last(array) { var length = array == null ? 0 : array.length; return length ? array[length - 1] : undefined; } module.exports = { get: get, last: last, trimNewLine: trimNewLine, };
Save
cmd:
run