Transformer conversion: buffer to ip-address
This module is a transformer conversion, published on npm. Read more about transformer at:
- the transformer website: http://transform.datadex.io
- the transformer repository: http://github.com/jbenet/transformer
Use this module through transformer.
var transformer = require('dat-transformer');
var tBufferToIpAddress = transformer('buffer', 'ip-address');
tBufferToIpAddress(new Buffer('7f000001', 'hex')); // '127.0.0.1'