npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

edi_pretty_print

v1.0.0

Published

Pretty prints EDI files

Downloads

2

Readme

EDI PRETTY PRINT

Pretty prints EDI files.

  • From file without any carriage return, with ' as segment terminator (.\test\raw.edi):
UNB+UNOA:1+US::US+50138::THEM+140531:0305+001934++ORDERS'UNH+1+ORDERS:91:2:UN'BGM+220+A761902+4:20140530:102+9'RFF+CT:EUA01349'RFF+AAV::C'TXT+THIS IS WHAT AN EDI MESSAGE WOULD LOOK LIKE... 'NAD+BY++OUR NAME PLC::::+++++EW4 34J'CTA+PD'COM+01752 253939:TE+01752 253939:FX+0:TL'CTA+OC+:A.SURNAME'COM+2407:EX'CTA+TI+:B.BROWN'COM+0:EX'CTA+SU'COM+0161 4297476:TE+01752 670633:FX'UNT+15+1'UNZ+1+001934'
  • To (.\test\pretty_printed.edi):
UNB+UNOA:1+US::US+50138::THEM+140531:0305+001934++ORDERS'
UNH+1+ORDERS:91:2:UN'
BGM+220+A761902+4:20140530:102+9'
RFF+CT:EUA01349'
RFF+AAV::C'
TXT+THIS IS WHAT AN EDI MESSAGE WOULD LOOK LIKE... '
NAD+BY++OUR NAME PLC::::+++++EW4 34J'
CTA+PD'
COM+01752 253939:TE+01752 253939:FX+0:TL'
CTA+OC+:A.SURNAME'
COM+2407:EX'
CTA+TI+:B.BROWN'
COM+0:EX'
CTA+SU'
COM+0161 4297476:TE+01752 670633:FX'
UNT+15+1'
UNZ+1+001934'

Install

npm install -g edi_pretty_print

Uninstall

npm uninstall -g edi_pretty_print

Usage

edi_pretty_print "./test/raw.edi"

Including the relative or absolute path inside quotes allows the tool to pretty print edi files with spaces in the filename (i.e. npm start "./test/raw copy.edi").

Windows: Install in context menu

Execute cmd as administrator and run the following command. It adds the needed information to the windows registry to show the tool as an option of the Windows context (right-click) menu.

edi_pretty_print_install_win

Regedit

Windows: Uninstall from context menu

Execute cmd as administrator and run the following command. It deletes the previoulsy added registry information.

edi_pretty_print_uninstall_win

Windows: Execute from context menu (Right-Click)

  • Launch the context menu with a right click over a single file:

Context menu multiple files

  • Launch the context menu with a right click over multiple selected files:

Context menu single file