Skip to content

What This Adds In Cloud Code

  • Useful debug formatting and object inspection.
  • Familiar Node compatibility for migrated scripts.

Quick Start

js
const util = require('util');
const message = util.format('Processed %d entries for %s', count, accountName);

API

Common functions include format, inspect, inherits, isArray, isObject, and related type helpers.

Practical Example

js
const util = require('util');

Nimbu.Cloud.define('debugPayload', (request, response) => {
  const snapshot = util.inspect(request.params, { depth: 2 });
  response.success({ snapshot });
});

Failure Modes & Gotchas

  • Do not expose verbose inspect output in production responses.