Skip to content

bitfocus/nmos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

22f884b Β· Feb 23, 2025

History

31 Commits
Jul 12, 2024
Oct 10, 2024
Feb 23, 2025
Dec 4, 2023
Jul 12, 2024
Dec 4, 2023
Jul 11, 2024
Dec 4, 2023
Jul 11, 2024
Jul 11, 2024
Jul 11, 2024
Feb 23, 2025
Feb 23, 2025
Jul 11, 2024
Jul 11, 2024
Jul 11, 2024
Feb 23, 2025

Repository files navigation

NMOS

  • Typescript types response objects
  • Zod validation (strict or not)

What does this solve?

  • In a world filled with those who disregard standards, this ensures the responses you receive comply with the standard. If they don't, you'll be informed, allowing you to handle it appropriately.
  • TypeScript types for a good developer experience

What is this really?

AMWAs IS-04 JSON schema files, converted to zod, structured to their respective URLs with an Axios HTTP library to fetch the resources.

Install

Depending on your package manager

pnpm i @bitfocus/nmos
yarn add @bitfocus/nmos
npm i @bitfocus/nmos

Usage

import NMOS from '@bitfocus/nmos'

const nmos = new NMOS({
    protocol: 'http',
    host: '10.0.0.3',
    port: 8090,
    basePath: '/x-nmos'
})

// Get self/node
const node = await nmos.get('/node/v1.3/self');
console.log(node);

// Get a specific device
const device = await nmos.get('/node/v1.3/devices/{device_id}', { device_id: "578aa0b3-992d-5ce0-9b4b-1d7b9713c4f2" });
console.log(device);

IS-04

This module currently only support GET requests for IS-04.

Author

William Viker [email protected] Bitfocus AS

Links