m2pool_backend_app/public/endian.js

7 lines
215 B
JavaScript
Raw Normal View History

2025-04-10 10:53:16 +00:00
const changeEndian = (hex) =>{
const buffer = Buffer.from(hex, 'hex');
const endian = Buffer.from(buffer.reverse())
const result = endian.toString("hex")
return result
}
module.exports = changeEndian