Node.js module for converting between EBCDIC and ASCII (ISO-8859-1). Supported EBCDIC codesets:
- 0037: English
- 0273: German
- 0278: Finnish/Swedish
EBCDIC codesets were taken from longpelaexpertise.com.
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