Skip to content

edwardwbli/a2e

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii-ebcdic-utils

ASCII/EBDIC utility functions

Usage

Node js

var asciiEbcdicUtils = require('ascii-ebcdic-utils');

Browser

<script src="a2e.js"></script>

Examples

asciiEbcdicUtils.asciiStrToEbcdicStr('db2jcc');
>> [ '84', '82', 'F2', '91', '83', '83' ]
asciiEbcdicUtils.bytesToAscii(['84', 'F2', '91', '83', '83']);
>> INDòPU1NBHNBH
asciiEbcdicUtils.bytesToEbdic(['84', 'F2', '91', '83', '83']);
>> db2jcc
var ebcdic = a2e.asciiStrToEbcdicChr('!@##$%^&*()_+=-?><,./~`012345678ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')
var ascii = a2e.ebcdicStrToAsciiChr(ebcdic)

About

ASCII/EBDIC utility functions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.5%
  • HTML 5.5%