Registry / devops / khala-fabric-formatter

khala-fabric-formatter

JSON →
library2.2.2-alpha.1jsnpmunverified

A formatter library for Hyperledger Fabric Node.js development. Current version 2.2.2-alpha.1 is in alpha stage. It provides utilities to format Fabric transaction data, block data, and peer responses. Release cadence is irregular; this package is part of davidkhala's fabric-common ecosystem. Key differentiator: focuses solely on formatting tasks for Hyperledger Fabric Node.js SDK, whereas alternatives cover broader Fabric utilities.

npm install khala-fabric-formatter
INSTALL
IMPORT
SIG · KHALA-FABRIC-FORMA
K
khala-fabric-formatter
devopsjavascriptv2.2.2-alpha.1
harness data pending
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.

formatTransaction
import { formatTransaction } from 'khala-fabric-formatter'
Default import may not be available; check docs.
formatBlock
import { formatBlock } from 'khala-fabric-formatter'
formatProposalResponse
const { formatProposalResponse } = require('khala-fabric-formatter')
import formatProposalResponse from 'khala-fabric-formatter'
CommonJS usage; named exports may require destructuring.

Formats a Hyperledger Fabric transaction object using formatTransaction.

import { formatTransaction } from 'khala-fabric-formatter'; const transactionData = { transactionEnvelope: { payload: { data: 'some-encoded-tx' } } }; const formatted = formatTransaction(transactionData); console.log(formatted);
Debug
Known issues
breakingVersion 2.x dropped support for Node.js < 10
fix
Upgrade Node.js to v10 or higher
affects: >=2.0.0
gotchaPackage is alpha; APIs may change without notice
fix
Pin exact version and monitor changelog
affects: >=2.2.0
deprecatedformatProposalResponse may be deprecated in future versions
fix
Check latest docs for replacement
affects: >=2.2.0
Errors
Common errors & fixes
Cannot find module 'khala-fabric-formatter'
Package not installed or import path incorrect
fix
Run 'npm install khala-fabric-formatter' and use correct import syntax
khala-fabric-formatter is not a function
Attempted to use default import when none exists
fix
Use named imports like '{ formatTransaction }'
Upgrade
Version history
2.2.2-alpha.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
khala-fabric-formatter — npm install khala-fabric-formatter · libregistry