Nimbu Developer Docs
Module Reference

util

Node utility helpers for formatting and inspection in Cloud Code.

What This Adds In Cloud Code

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

Quick Start

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

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.

On this page