ebcdic-ascii

Node.js module for converting between EBCDIC and ASCII (ISO-8859-1). Supported EBCDIC codesets:

Usage no npm install needed!

<script type="module">
  import ebcdicAscii from 'https://cdn.skypack.dev/ebcdic-ascii';
</script>

README

ebcdic-ascii

Node.js module for converting between EBCDIC and ASCII (ISO-8859-1). Supported EBCDIC codesets:

  • 0037: English
  • 0273: German

EBCDIC codesets were taken from longpelaexpertise.com.

Usage

import EBCDIC from "ebcdic-ascii"

const converter = new EBCDIC("0037")

converter.toASCII("E385A2A340D485A2A2818785")
// returns "Test Message"

converter.toEBCDIC("54657374204D657373616765")
// returns "E385A2A340D485A2A2818785"

Check out index.d.ts for documentation