Files
mapper/backend/node_modules/node-osc/docs
2026-03-10 20:48:09 +00:00
..
2026-03-10 20:48:09 +00:00
2026-03-10 20:48:09 +00:00
2026-03-10 20:48:09 +00:00

node-osc Documentation

Welcome to the node-osc documentation! This directory contains comprehensive documentation for the node-osc library.

Documentation Overview

📚 API Reference

Complete API documentation for all classes and functions

Auto-generated from JSDoc comments in the source code. This is your reference for:

  • All classes: Server, Client, Message, Bundle
  • All methods and their parameters
  • Low-level functions: encode() and decode()
  • Return types and error conditions
  • Code examples for each API

Note: This file is automatically generated. To update it, edit the JSDoc comments in the source code and run npm run docs.

📘 Usage Guide

Best practices, patterns, and troubleshooting

A comprehensive guide covering:

  • Event handling patterns
  • Error handling strategies
  • OSC type system details
  • Best practices for production use
  • Troubleshooting common issues
  • Advanced topics like custom transports and performance optimization

Quick Navigation

New to node-osc?

  1. Start with the main README for a quick introduction and installation
  2. Try the examples to see working code
  3. Read the Usage Guide to learn best practices
  4. Reference the API documentation as needed

Looking for something specific?

Additional Resources

Contributing to Documentation

Updating API Documentation

The API documentation is automatically generated from JSDoc comments:

  1. Edit JSDoc comments in the source files (lib/**/*.mjs)
  2. Run npm run docs to regenerate API.md
  3. Review the changes and commit

Updating the Usage Guide

The Usage Guide (GUIDE.md) is manually maintained. When editing:

  • Keep it focused on patterns, best practices, and how-to content
  • Avoid duplicating API details (link to API.md instead)
  • Include practical code examples
  • Update the table of contents if adding new sections

Documentation Structure Philosophy

Our documentation is organized to minimize duplication while maximizing usefulness:

  • README.md (main) → Quick start, basic examples, installation
  • API.md → Complete API reference with all technical details
  • GUIDE.md → How to use the library effectively, patterns, and troubleshooting
  • examples/ → Working code you can run and learn from

This structure ensures you can find what you need without reading through repeated content.