UNPKG

lazo-next

Version:

A client-server web framework built on Node.js that allows front-end developers to easily create a 100% SEO compliant, component MVC structured web application with an optimized first page load.

23 lines (17 loc) 518 B
define(['continuation-local-storage', 'util'], function (cls, util) { var getRequest = function () { var lazoNs = cls.getNamespace('lazojs'); var request = lazoNs && lazoNs.get('request'); return request; }; var serverStringify = function (object) { var options = { depth: 1 }; return util.inspect(object, options).replace(/\s+/g, ' '); }; return { getRequest: getRequest, serverStringify: serverStringify }; });