Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
BigLib
✓ const BigLib = require('node-red-biglib')
✗ import BigLib from 'node-red-biglib'
This package is CommonJS only; no ESM support expected.
biglib
✓ const biglib = require('node-red-biglib')
✗ const BigLib = require('node-red-biglib').BigLib
The main export is the entire module; no named exports exist.
BigNode
✓ const BigNode = require('node-red-biglib').BigNode
✗ import { BigNode } from 'node-red-biglib'
BigNode is a property of the default export; Node-RED's function nodes require CommonJS.
Shows how to require the library, use BigNode constructor, and process blocks in a custom Node-RED node.
const BigLib = require('node-red-biglib');
const BigNode = BigLib.BigNode;
// Example: Create a simple big node
module.exports = function(RED) {
function MyBigNode(config) {
RED.nodes.createNode(this, config);
BigNode.call(this, config);
this.on('input', function(msg) {
// Process blocks
const block = BigLib.createBlock(msg.payload, {});
this.sendBlock(block);
});
}
RED.nodes.registerType('my-big-node', MyBigNode);
};
Debug
Known issues
gotchaThis library is designed for Node-RED and not intended for standalone use outside of Node-RED's runtime.fixOnly use within Node-RED custom node development.
affects: >=1.0.0
gotchaThe documentation and API are not well documented; rely on Big Nodes child packages for usage examples.fixRefer to node-red-contrib-bigfile, node-red-contrib-bigcsv etc. for patterns.
affects: >=1.0.0
deprecatedMoment.js is deprecated and recommended to be replaced with modern date libraries.fixConsider patching to use date-fns or Luxon instead, but be aware of breaking changes.
affects: >=1.0.0
breakingMajor version 2 may not be backward compatible; no official migration guide exists.fixIf upgrading from 1.x, check child node packages for compatibility.
affects: >=2.0.0 (if released)
Errors
Common errors & fixes
TypeError: BigLib.createBlock is not a function
Incorrect import or use of a non-existent API; likely a typo or wrong symbol.
fixUse BigLib.Block or check actual exported properties (require('node-red-biglib')). Cannot find module 'node-red-biglib'
Package not installed in the Node-RED user directory or global modules.
fixRun 'npm install node-red-biglib' in the Node-RED home directory (~/.node-red).
BigNode is not a constructor
BigNode not called with 'new' or not properly inherited.
fixEnsure proper usage: BigNode.call(this, config) inside node constructor.
Audit
Dependencies
bylinerequiredsimple line-by-line stream reader
filesizerequiredprovides human readable file size
momentrequireddates parsing/manipulation