Skip to content

chore: add parse-nsml.js debug helper script - #2

Draft
rjmunro wants to merge 1 commit into
mainfrom
rjmunro/add-parse-nsml-script
Draft

chore: add parse-nsml.js debug helper script#2
rjmunro wants to merge 1 commit into
mainfrom
rjmunro/add-parse-nsml-script

Conversation

@rjmunro

@rjmunro rjmunro commented May 19, 2026

Copy link
Copy Markdown

This pull request is posted on behalf of SuperFly.tv.

Type of Contribution

Developer tooling / debug helper

Current Behavior

There is no easy way to test how the gateway parses an NSML file without running
a full Sofie stack.

New Behavior

Adds scripts/parse-nsml.js — a small Node.js script that parses a local NSML
file using the same @tv2media/inews parser the gateway uses, and prints the
resulting INewsStory JSON to stdout.

node scripts/parse-nsml.js <path-to-nsml-file>

Useful for debugging how the gateway interprets a rundown file without needing a
live iNews server or Sofie connection.

Testing Instructions

node scripts/parse-nsml.js path/to/some-file.nsml

Verify the output is valid JSON representing the parsed story objects.

Status

Ready to merge.

Parses a local NSML file using the same parser as the gateway and
outputs the resulting INewsStory JSON. Useful for debugging how the
gateway interprets a rundown file without needing a live Sofie connection.

Usage: node scripts/parse-nsml.js <path-to-nsml-file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant