Package Exports
- @rfkit/spectrum-analyzer
- @rfkit/spectrum-analyzer/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rfkit/spectrum-analyzer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@rfkit/spectrum-analyzer
A high-performance spectrum analyzer library for RF signal processing, supporting real-time spectrum analysis, waterfall display, and multi-segment frequency scanning.
Setup
pnpm add @rfkit/spectrum-analyzer
Use
import {
SpectrumAnalyzer,
type SpectrumConfig,
type SpectrumOutputData,
type TimestampedFloat32Array,
} from '@rfkit/spectrum-analyzer';
new SpectrumAnalyzer({
processing: {
enableMetrics,
enableWaterfall,
},
onSpectrumUpdate: handleSpectrumUpdate,
});