Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nasa-jpl/aerie-ampcs

Package Overview
Dependencies
Maintainers
9
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nasa-jpl/aerie-ampcs

Utility functions to convert a standard XML AMPCS command dictionary to JavaScript.

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
93
decreased by-23.14%
Maintainers
9
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 13 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc