go-edi

module
v0.0.2-beta.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: MIT

README

go-edi

EDI Utils for performing common tasks on EDI messages.

Common utilities:
  • Marshal - convert EDI into JSON
  • Unmarshal - convert JSON into EDI
Install

To install the CLI locally, you can run the following command:

curl -s https://raw.githubusercontent.com/azarc-io/go-edi/refs/heads/main/cmd/edi/install | bash

To install a beta candidate:

curl -s https://raw.githubusercontent.com/azarc-io/go-edi/refs/heads/main/cmd/edi/install | bash -s -- --include-rc
Usage
Marshal from JSON to EDI

To marshal your data from an input of JSON to EDI, you can run the following command:

cat my.json | edi marshal -s edi-schema_example_v1.json
Unmarshal from EDI to JSON

To unmarshal your data from an input of EDI to JSON, you can run the following command:

cat my.edi | edi unmarshal -s edi-schema_example_v1.json

Directories

Path Synopsis
cmd
edi
internal
pkg
edi

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL