@impleotv/misb601-tag2detailed
v1.0.0
Published
MISB ST 0601 compact tag to detailed metadata converter
Downloads
8
Readme
@impleotv/misb601-tag2detailed
A TypeScript library that converts compact MISB ST 0601 metadata (keyed by numeric tags) into a human readable JSON representation. The generated bundle can be consumed from both Node.js and browser environments.
Installation
npm install @impleotv/misb601-tag2detailedUsage
import { convert601ToDetailedJson } from "@impleotv/misb601-tag2detailed";
const compact = {
"2": 1760451622722252,
"3": "TestID",
"5": 45.79721,
"13": 32.5000000058,
"14": 34.8000000207,
"15": 100.24,
"48": {
"1": 1
},
"56": 24,
"65": 14
};
const detailed = convert601ToDetailedJson(compact, { timezoneOffsetMinutes: 180 });
console.log(detailed);Scripts
npm run build– creates CommonJS, ESM and type definition bundles withtsup.npm test– executes the Vitest suite.npm run lint– performs a type-check only build to ensure the project compiles.
Makefile
The repository includes a Makefile with convenience targets:
make install– install dependencies.make build– run the TypeScript build pipeline and verify the bundle exists.make test– execute the Vitest test suite.make clean– remove the build artefacts.make publish– build, test and publish the package to npm (requires valid npm credentials in the environment).make release VERSION=1.2.3– publish the package and create an annotated git tag namedv1.2.3, then push it toorigin.make test-app– run the dev server insidetest-appfor manual verification.
To produce a release, supply the desired semantic version number. For example:
make release VERSION=1.2.3Development
- Install dependencies with
npm install. - Run
npm testwhile developing conversions and tag definitions. - Build the library with
npm run buildbefore publishing.
License
MIT
