1.0.6 • Published 1 year ago

@nasa-jpl/aerie-ampcs v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm version

@nasa-jpl/aerie-ampcs

This package contains utility functions to convert a standard XML AMPCS command dictionary to JavaScript.

Install

npm install @nasa-jpl/aerie-ampcs --save

Usage

parse

Parse an XML string in the AMPCS command dictionary standard into JavaScript.

import { parse } from '@nasa-jpl/aerie-ampcs';

const xml = `
  <?xml version='1.0' encoding='UTF-8'?>
  <command_dictionary>
    <header mission_name="GENERIC" spacecraft_id="42" schema_version="5.0" version="2022-001T00:00:00.000" />
    <command_definitions>
    </command_definitions>
  </command_dictionary>
`;

const js = parse(xml);
console.log(js);

const json = JSON.stringify(js);
console.log(json);

License

The scripts and documentation in this project are released under the MIT License.

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

3 years ago