PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/tcomb/lib
Просмотр файла: stringify.js
var getFunctionName = require('./getFunctionName');
function replacer(key, value) {
if (typeof value === 'function') {
return getFunctionName(value);
}
return value;
}
module.exports = function stringify(x) {
try { // handle "Converting circular structure to JSON" error
return JSON.stringify(x, replacer, 2);
}
catch (e) {
return String(x);
}
};Выполнить команду
Для локальной разработки. Не используйте в интернете!