wsjtx-lib 1.0.4 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +6 -2
  2. package/dist/src/index.d.ts.map +1 -1
  3. package/dist/src/index.js +10 -42
  4. package/dist/src/index.js.map +1 -1
  5. package/package.json +3 -10
  6. package/prebuilds/darwin-arm64/build-info.json +3 -3
  7. package/prebuilds/darwin-arm64/libfftw3f.3.dylib +0 -0
  8. package/prebuilds/darwin-arm64/libfftw3f_threads.3.dylib +0 -0
  9. package/prebuilds/darwin-arm64/libgfortran.5.dylib +0 -0
  10. package/prebuilds/linux-arm64/build-info.json +2 -2
  11. package/prebuilds/linux-arm64/wsjtx_lib_nodejs.node +0 -0
  12. package/prebuilds/linux-x64/build-info.json +2 -2
  13. package/prebuilds/linux-x64/wsjtx_lib_nodejs.node +0 -0
  14. package/prebuilds/package-info.json +1 -1
  15. package/prebuilds/win32-x64/build-info.json +2 -2
  16. package/prebuilds/win32-x64/wsjtx_lib_nodejs.node +0 -0
  17. package/dist/chunk-IOOVX2IY.js +0 -39
  18. package/dist/chunk-JMWITWT7.js +0 -74
  19. package/dist/chunk-WYLCLDX4.js +0 -483
  20. package/dist/index.cjs +0 -554
  21. package/dist/index.cjs.map +0 -1
  22. package/dist/index.d.cts +0 -192
  23. package/dist/index.d.ts +0 -192
  24. package/dist/index.js +0 -484
  25. package/dist/index.js.map +0 -1
  26. package/dist/src/index.cjs +0 -554
  27. package/dist/src/index.d.cts +0 -192
  28. package/dist/src/types.cjs +0 -64
  29. package/dist/src/types.d.cts +0 -252
  30. package/dist/test/wsjtx.basic.test.cjs +0 -759
  31. package/dist/test/wsjtx.basic.test.d.cts +0 -2
  32. package/dist/test/wsjtx.test.cjs +0 -4004
  33. package/dist/test/wsjtx.test.d.cts +0 -2
  34. package/dist/types.cjs +0 -64
  35. package/dist/types.cjs.map +0 -1
  36. package/dist/types.d.cts +0 -252
  37. package/dist/types.d.ts +0 -252
  38. package/dist/types.js +0 -8
  39. package/dist/types.js.map +0 -1
@@ -1,554 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
33
- WSJTXError: () => WSJTXError,
34
- WSJTXLib: () => WSJTXLib,
35
- WSJTXMode: () => WSJTXMode
36
- });
37
- module.exports = __toCommonJS(src_exports);
38
-
39
- // src/types.ts
40
- var WSJTXMode = /* @__PURE__ */ ((WSJTXMode2) => {
41
- WSJTXMode2[WSJTXMode2["FT8"] = 0] = "FT8";
42
- WSJTXMode2[WSJTXMode2["FT4"] = 1] = "FT4";
43
- WSJTXMode2[WSJTXMode2["JT4"] = 2] = "JT4";
44
- WSJTXMode2[WSJTXMode2["JT65"] = 3] = "JT65";
45
- WSJTXMode2[WSJTXMode2["JT9"] = 4] = "JT9";
46
- WSJTXMode2[WSJTXMode2["FST4"] = 5] = "FST4";
47
- WSJTXMode2[WSJTXMode2["Q65"] = 6] = "Q65";
48
- WSJTXMode2[WSJTXMode2["FST4W"] = 7] = "FST4W";
49
- WSJTXMode2[WSJTXMode2["WSPR"] = 8] = "WSPR";
50
- return WSJTXMode2;
51
- })(WSJTXMode || {});
52
- var WSJTXError = class extends Error {
53
- constructor(message, code) {
54
- super(message);
55
- this.code = code;
56
- this.name = "WSJTXError";
57
- }
58
- };
59
-
60
- // src/index.ts
61
- var import_node_module = require("module");
62
- var import_node_url = require("url");
63
- var import_node_path = __toESM(require("path"), 1);
64
- var import_node_fs = __toESM(require("fs"), 1);
65
- var import_meta = {};
66
- function getModuleContext() {
67
- try {
68
- if (typeof import_meta !== "undefined" && import_meta.url) {
69
- return {
70
- require: (0, import_node_module.createRequire)(import_meta.url),
71
- __filename: (0, import_node_url.fileURLToPath)(import_meta.url),
72
- __dirname: import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url))
73
- };
74
- }
75
- } catch {
76
- }
77
- return {
78
- require: typeof require2 !== "undefined" ? require2 : (0, import_node_module.createRequire)("file://"),
79
- __filename: typeof __filename !== "undefined" ? __filename : "",
80
- __dirname: typeof __dirname !== "undefined" ? __dirname : ""
81
- };
82
- }
83
- var moduleContext = getModuleContext();
84
- var { require: require2, __filename, __dirname } = moduleContext;
85
- function findNativeModule() {
86
- const platform = process.platform;
87
- const arch = process.arch;
88
- const isPkgEnvironment = !!process.pkg || __dirname.includes("/snapshot/") || __dirname.includes("\\snapshot\\");
89
- if (isPkgEnvironment) {
90
- console.log("Detected pkg packaged environment");
91
- const execDir = import_node_path.default.dirname(process.execPath);
92
- const pkgPaths = [
93
- // 1. 与可执行文件同目录(最常见的打包方式)
94
- import_node_path.default.join(execDir, "wsjtx_lib_nodejs.node"),
95
- import_node_path.default.join(execDir, `wsjtx_lib_nodejs-${platform}-${arch}.node`),
96
- // 2. prebuilds 子目录(保持结构的打包方式)
97
- import_node_path.default.join(execDir, "prebuilds", `${platform}-${arch}`, "wsjtx_lib_nodejs.node"),
98
- // 3. 相对于可执行文件的其他可能位置
99
- import_node_path.default.join(execDir, "..", "prebuilds", `${platform}-${arch}`, "wsjtx_lib_nodejs.node"),
100
- import_node_path.default.join(execDir, "lib", "wsjtx_lib_nodejs.node"),
101
- import_node_path.default.join(execDir, "native", "wsjtx_lib_nodejs.node")
102
- ];
103
- console.log("PKG environment - searching for native module:");
104
- pkgPaths.forEach((p) => console.log(` - ${p}`));
105
- for (const modulePath of pkgPaths) {
106
- if (import_node_fs.default.existsSync(modulePath)) {
107
- console.log(`Found native module at: ${modulePath}`);
108
- return modulePath;
109
- }
110
- }
111
- const pathList2 = pkgPaths.map((p) => ` - ${p}`).join("\n");
112
- throw new Error(
113
- `Native module not found in pkg packaged environment for ${platform}-${arch}.
114
- Searched in:
115
- ${pathList2}
116
-
117
- Solutions:
118
- 1. Ensure the native module is included in your pkg configuration
119
- 2. Copy wsjtx_lib_nodejs.node to the same directory as your executable
120
- 3. Check if the native module was properly bundled during packaging`
121
- );
122
- }
123
- const moduleRoot = import_node_path.default.resolve(__dirname, "..");
124
- const possiblePaths = [
125
- // 1. Prebuilt binaries (npm packages) - highest priority
126
- import_node_path.default.join(moduleRoot, "prebuilds", `${platform}-${arch}`, "wsjtx_lib_nodejs.node"),
127
- // 2. GitHub Actions legacy format (for backward compatibility)
128
- import_node_path.default.join(moduleRoot, "prebuilds", `${platform}-latest-${arch}`, "wsjtx_lib_nodejs.node"),
129
- import_node_path.default.join(moduleRoot, "prebuilds", `ubuntu-latest-${arch}`, "wsjtx_lib_nodejs.node"),
130
- // Linux
131
- import_node_path.default.join(moduleRoot, "prebuilds", `macos-latest-${arch}`, "wsjtx_lib_nodejs.node"),
132
- // macOS
133
- import_node_path.default.join(moduleRoot, "prebuilds", `windows-latest-${arch}`, "wsjtx_lib_nodejs.node"),
134
- // Windows
135
- // 3. Local development builds - third priority
136
- import_node_path.default.join(moduleRoot, "build", "wsjtx_lib_nodejs.node"),
137
- import_node_path.default.join(moduleRoot, "build", "Release", "wsjtx_lib_nodejs.node")
138
- ];
139
- console.log("Normal environment - searching for native module:");
140
- possiblePaths.forEach((p) => console.log(` - ${p}`));
141
- for (const modulePath of possiblePaths) {
142
- if (import_node_fs.default.existsSync(modulePath)) {
143
- console.log(`Found native module at: ${modulePath}`);
144
- return modulePath;
145
- }
146
- }
147
- const pathList = possiblePaths.map((p) => ` - ${p}`).join("\n");
148
- throw new Error(
149
- `Native module not found for ${platform}-${arch}.
150
- Searched in:
151
- ${pathList}
152
-
153
- Solutions:
154
- 1. If you installed via npm, this may be a missing prebuilt binary
155
- 2. For development, run "npm run build" to compile the native module
156
- 3. Check if your platform/architecture is supported`
157
- );
158
- }
159
- var nativeModulePath = findNativeModule();
160
- var { WSJTXLib: NativeWSJTXLib } = require2(nativeModulePath);
161
- var WSJTXLib = class _WSJTXLib {
162
- native;
163
- config;
164
- /**
165
- * Create a new WSJTX library instance
166
- *
167
- * @param config Optional configuration options
168
- * @throws {WSJTXError} If the native library fails to initialize
169
- */
170
- constructor(config = {}) {
171
- this.config = {
172
- maxThreads: 4,
173
- debug: false,
174
- ...config
175
- };
176
- try {
177
- this.native = new NativeWSJTXLib();
178
- } catch (error) {
179
- throw new WSJTXError(
180
- `Failed to initialize WSJTX library: ${error instanceof Error ? error.message : String(error)}`,
181
- "INIT_ERROR"
182
- );
183
- }
184
- }
185
- /**
186
- * Decode digital radio signals from audio data
187
- *
188
- * This method processes audio samples and attempts to decode digital
189
- * messages using the specified protocol mode. The operation is performed
190
- * asynchronously to avoid blocking the Node.js event loop.
191
- *
192
- * @param mode The digital mode to use for decoding
193
- * @param audioData Audio samples (Float32Array or Int16Array)
194
- * @param frequency Center frequency in Hz
195
- * @param threads Number of threads to use (1-16, default: 4)
196
- * @returns Promise that resolves when decoding is complete
197
- *
198
- * @throws {WSJTXError} If parameters are invalid or decoding fails
199
- *
200
- * @example
201
- * ```typescript
202
- * const audioData = new Float32Array(48000 * 13); // 13 seconds
203
- * await lib.decode(WSJTXMode.FT8, audioData, 1500);
204
- * const messages = lib.pullMessages();
205
- * ```
206
- */
207
- async decode(mode, audioData, frequency, threads = this.config.maxThreads || 4) {
208
- this.validateMode(mode);
209
- this.validateFrequency(frequency);
210
- this.validateThreads(threads);
211
- this.validateAudioData(audioData);
212
- if (!this.isDecodingSupported(mode)) {
213
- throw new WSJTXError(`Decoding not supported for mode: ${WSJTXMode[mode]}`, "UNSUPPORTED_MODE");
214
- }
215
- return new Promise((resolve, reject) => {
216
- const callback = (error, result) => {
217
- if (error) {
218
- reject(new WSJTXError(error.message, "DECODE_ERROR"));
219
- } else {
220
- resolve({ success: result });
221
- }
222
- };
223
- try {
224
- this.native.decode(mode, audioData, frequency, threads, callback);
225
- } catch (error) {
226
- reject(new WSJTXError(
227
- `Decode operation failed: ${error instanceof Error ? error.message : String(error)}`,
228
- "DECODE_ERROR"
229
- ));
230
- }
231
- });
232
- }
233
- /**
234
- * Encode a message into audio waveform for transmission
235
- *
236
- * Generates the audio waveform that represents the specified message
237
- * using the given digital mode. The resulting audio can be fed to
238
- * a radio transmitter or audio interface.
239
- *
240
- * @param mode The digital mode to use for encoding
241
- * @param message The message text to encode (mode-specific format)
242
- * @param frequency Center frequency in Hz
243
- * @param threads Number of threads to use (1-16, default: 4)
244
- * @returns Promise that resolves with encoded audio data and actual message sent
245
- *
246
- * @throws {WSJTXError} If parameters are invalid or encoding fails
247
- *
248
- * @example
249
- * ```typescript
250
- * const result = await lib.encode(WSJTXMode.FT8, 'CQ DX K1ABC FN20', 1500);
251
- * console.log('Generated audio samples:', result.audioData.length);
252
- * console.log('Actual message sent:', result.messageSent);
253
- * ```
254
- */
255
- async encode(mode, message, frequency, threads = this.config.maxThreads || 4) {
256
- this.validateMode(mode);
257
- this.validateMessage(message);
258
- this.validateFrequency(frequency);
259
- this.validateThreads(threads);
260
- if (!this.isEncodingSupported(mode)) {
261
- throw new WSJTXError(`Encoding not supported for mode: ${WSJTXMode[mode]}`, "UNSUPPORTED_MODE");
262
- }
263
- return new Promise((resolve, reject) => {
264
- const callback = (error, result) => {
265
- if (error) {
266
- reject(new WSJTXError(error.message, "ENCODE_ERROR"));
267
- } else {
268
- resolve(result);
269
- }
270
- };
271
- try {
272
- this.native.encode(mode, message, frequency, threads, callback);
273
- } catch (error) {
274
- reject(new WSJTXError(
275
- `Encode operation failed: ${error instanceof Error ? error.message : String(error)}`,
276
- "ENCODE_ERROR"
277
- ));
278
- }
279
- });
280
- }
281
- /**
282
- * Decode WSPR signals from IQ data
283
- *
284
- * WSPR (Weak Signal Propagation Reporter) is a specialized protocol
285
- * for studying radio propagation. This method takes IQ (complex)
286
- * samples and attempts to decode WSPR transmissions.
287
- *
288
- * @param iqData Interleaved I,Q samples as Float32Array
289
- * @param options Decoder options (frequency, callsign, etc.)
290
- * @returns Promise that resolves with array of decoded WSPR results
291
- *
292
- * @throws {WSJTXError} If parameters are invalid or decoding fails
293
- *
294
- * @example
295
- * ```typescript
296
- * const iqData = new Float32Array(2 * 12000 * 111); // 2 minutes of IQ data
297
- * const options = {
298
- * dialFrequency: 14095600, // 20m WSPR frequency
299
- * callsign: 'K1ABC',
300
- * locator: 'FN20'
301
- * };
302
- * const results = await lib.decodeWSPR(iqData, options);
303
- * ```
304
- */
305
- async decodeWSPR(iqData, options = {}) {
306
- this.validateIQData(iqData);
307
- const defaultOptions = {
308
- dialFrequency: 14095600,
309
- // 20m WSPR frequency
310
- callsign: "",
311
- locator: "",
312
- quickMode: false,
313
- useHashTable: true,
314
- passes: 2,
315
- subtraction: true,
316
- ...options
317
- };
318
- return new Promise((resolve, reject) => {
319
- const callback = (error, results) => {
320
- if (error) {
321
- reject(new WSJTXError(error.message, "WSPR_DECODE_ERROR"));
322
- } else {
323
- resolve(results);
324
- }
325
- };
326
- try {
327
- this.native.decodeWSPR(iqData, defaultOptions, callback);
328
- } catch (error) {
329
- reject(new WSJTXError(
330
- `WSPR decode failed: ${error instanceof Error ? error.message : String(error)}`,
331
- "WSPR_DECODE_ERROR"
332
- ));
333
- }
334
- });
335
- }
336
- /**
337
- * Retrieve decoded messages from the internal queue
338
- *
339
- * Messages are added to an internal queue as they are decoded.
340
- * This method retrieves and removes all pending messages from the queue.
341
- *
342
- * @returns Array of decoded messages
343
- *
344
- * @example
345
- * ```typescript
346
- * const messages = lib.pullMessages();
347
- * messages.forEach(msg => {
348
- * console.log(`${msg.text} (SNR: ${msg.snr} dB, ΔT: ${msg.deltaTime}s)`);
349
- * });
350
- * ```
351
- */
352
- pullMessages() {
353
- try {
354
- return this.native.pullMessages();
355
- } catch (error) {
356
- throw new WSJTXError(
357
- `Failed to pull messages: ${error instanceof Error ? error.message : String(error)}`,
358
- "PULL_ERROR"
359
- );
360
- }
361
- }
362
- /**
363
- * Check if encoding is supported for a specific mode
364
- *
365
- * @param mode The mode to check
366
- * @returns True if encoding is supported
367
- */
368
- isEncodingSupported(mode) {
369
- return this.native.isEncodingSupported(mode);
370
- }
371
- /**
372
- * Check if decoding is supported for a specific mode
373
- *
374
- * @param mode The mode to check
375
- * @returns True if decoding is supported
376
- */
377
- isDecodingSupported(mode) {
378
- return this.native.isDecodingSupported(mode);
379
- }
380
- /**
381
- * Get the required sample rate for a specific mode
382
- *
383
- * @param mode The mode to query
384
- * @returns Sample rate in Hz
385
- */
386
- getSampleRate(mode) {
387
- return this.native.getSampleRate(mode);
388
- }
389
- /**
390
- * Get the transmission duration for a specific mode
391
- *
392
- * @param mode The mode to query
393
- * @returns Duration in seconds
394
- */
395
- getTransmissionDuration(mode) {
396
- return this.native.getTransmissionDuration(mode);
397
- }
398
- /**
399
- * Get capabilities for all supported modes
400
- *
401
- * @returns Array of mode capability information
402
- */
403
- getAllModeCapabilities() {
404
- const modes = Object.values(WSJTXMode).filter((v) => typeof v === "number");
405
- return modes.map((mode) => ({
406
- mode,
407
- encodingSupported: this.isEncodingSupported(mode),
408
- decodingSupported: this.isDecodingSupported(mode),
409
- sampleRate: this.getSampleRate(mode),
410
- duration: this.getTransmissionDuration(mode)
411
- }));
412
- }
413
- /**
414
- * Convert audio format between Float32Array and Int16Array
415
- *
416
- * @param audioData Input audio data
417
- * @param targetFormat Target format ('float32' or 'int16')
418
- * @returns Converted audio data
419
- */
420
- static convertAudioFormat(audioData, targetFormat) {
421
- if (targetFormat !== "float32" && targetFormat !== "int16") {
422
- throw new Error(`Invalid target format: ${targetFormat}. Must be 'float32' or 'int16'`);
423
- }
424
- if (targetFormat === "float32") {
425
- if (audioData instanceof Float32Array) {
426
- return audioData;
427
- }
428
- const result = new Float32Array(audioData.length);
429
- for (let i = 0; i < audioData.length; i++) {
430
- result[i] = audioData[i] / 32768;
431
- }
432
- return result;
433
- } else {
434
- if (audioData instanceof Int16Array) {
435
- return audioData;
436
- }
437
- const result = new Int16Array(audioData.length);
438
- for (let i = 0; i < audioData.length; i++) {
439
- result[i] = Math.max(-32768, Math.min(32767, Math.round(audioData[i] * 32768)));
440
- }
441
- return result;
442
- }
443
- }
444
- /**
445
- * Static convenience helper for async audio format conversion.
446
- */
447
- static async convertAudioFormatAsync(audioData, targetFormat) {
448
- const lib = new _WSJTXLib();
449
- return lib.convertAudioFormatAsync(audioData, targetFormat);
450
- }
451
- /**
452
- * Asynchronously convert audio data format without blocking the event loop
453
- *
454
- * Uses native thread pool to offload conversion.
455
- */
456
- async convertAudioFormatAsync(audioData, targetFormat) {
457
- if (targetFormat !== "float32" && targetFormat !== "int16") {
458
- throw new Error(`Invalid target format: ${targetFormat}. Must be 'float32' or 'int16'`);
459
- }
460
- this.validateAudioData(audioData);
461
- return new Promise((resolve, reject) => {
462
- const callback = (error, result) => {
463
- if (error) {
464
- reject(new WSJTXError(error.message ?? String(error), "CONVERT_ERROR"));
465
- } else {
466
- resolve(result);
467
- }
468
- };
469
- try {
470
- this.native.convertAudioAsync(audioData, targetFormat, callback);
471
- } catch (error) {
472
- reject(new WSJTXError(
473
- `Convert operation failed: ${error instanceof Error ? error.message : String(error)}`,
474
- "CONVERT_ERROR"
475
- ));
476
- }
477
- });
478
- }
479
- // Validation methods
480
- validateMode(mode) {
481
- if (!Object.values(WSJTXMode).includes(mode)) {
482
- throw new WSJTXError(`Invalid mode: ${mode}`, "INVALID_MODE");
483
- }
484
- }
485
- validateFrequency(frequency) {
486
- if (!Number.isInteger(frequency) || frequency < 0 || frequency > 3e7) {
487
- throw new WSJTXError(
488
- `Invalid frequency: ${frequency}. Must be between 0 and 30,000,000 Hz`,
489
- "INVALID_FREQUENCY"
490
- );
491
- }
492
- }
493
- validateThreads(threads) {
494
- if (!Number.isInteger(threads) || threads < 1 || threads > 16) {
495
- throw new WSJTXError(
496
- `Invalid thread count: ${threads}. Must be between 1 and 16`,
497
- "INVALID_THREADS"
498
- );
499
- }
500
- }
501
- validateMessage(message) {
502
- if (typeof message !== "string" || message.length === 0 || message.length > 22) {
503
- throw new WSJTXError(
504
- `Invalid message: "${message}". Must be 1-22 characters long`,
505
- "INVALID_MESSAGE"
506
- );
507
- }
508
- }
509
- validateAudioData(audioData) {
510
- if (!(audioData instanceof Float32Array) && !(audioData instanceof Int16Array)) {
511
- throw new WSJTXError(
512
- "Invalid audio data: must be Float32Array or Int16Array",
513
- "INVALID_AUDIO_DATA"
514
- );
515
- }
516
- if (audioData.length === 0) {
517
- throw new WSJTXError("Audio data cannot be empty", "INVALID_AUDIO_DATA");
518
- }
519
- }
520
- validateIQData(iqData) {
521
- if (!(iqData instanceof Float32Array)) {
522
- throw new WSJTXError(
523
- "Invalid IQ data: must be Float32Array with interleaved I,Q samples",
524
- "INVALID_IQ_DATA"
525
- );
526
- }
527
- if (iqData.length === 0 || iqData.length % 2 !== 0) {
528
- throw new WSJTXError(
529
- "IQ data length must be even (interleaved I,Q samples)",
530
- "INVALID_IQ_DATA"
531
- );
532
- }
533
- }
534
- };
535
- // Annotate the CommonJS export names for ESM import in node:
536
- 0 && (module.exports = {
537
- WSJTXError,
538
- WSJTXLib,
539
- WSJTXMode
540
- });
541
- /**
542
- * WSJTX Digital Radio Protocol Library for Node.js
543
- *
544
- * This library provides encoding and decoding capabilities for various
545
- * digital amateur radio protocols including FT8, FT4, WSPR, and others.
546
- *
547
- * The library is a Node.js C++ extension that wraps the wsjtx_lib C library,
548
- * providing high-performance digital signal processing capabilities with
549
- * multi-platform support (Windows, macOS, Linux).
550
- *
551
- * @version 1.0.0
552
- * @author WSJTX Development Team
553
- * @license GPL-3.0
554
- */