1.0.0 • Published 5 years ago
jquery-hex2string v1.0.0
jquery-hex2string
jQuery plugin for converting hex to string and string to hex.
Installation
npm
$ npm install jquery-hex2string --save
browser
<script src="./path-to/jquery.min.js"></script>
<script src="./dist/jq-hex2string.min.js"></script>
info
// demo
console.log($.str2hexSync('hello world!')); // returns '68656c6c6f20776f726c6421'
console.log($.hex2strSync('68656c6c6f20776f726c6421')); // returns 'hello world!'
$.str2hex('hello world!',function(i){
console.log(i) // returns '68656c6c6f20776f726c6421'
});
$.hex2str('68656c6c6f20776f726c6421', function(i){
console.log(i) // returns 'hello world!'
});
1.0.0
5 years ago