lib/utils.js
function createETagGenerator (options) {
  return function generateETag (body, encoding) {
    var buf = !Buffer.isBuffer(body)
      ? Buffer.from(body, encoding)
      : body

    return etag(buf, options)
  }
}
function createETagGenerator (options) {
  return function generateETag (body, encoding) {
    var buf = !Buffer.isBuffer(body)
      ? Buffer.from(body, encoding)
      : body

    return etag(buf, options)
  }
}
function createETagGenerator ( options ) { return function generateETag ( body , encoding ) { var buf = ! Buffer . isBuffer ( body ) ? Buffer . from ( body , encoding ) : body return etag ( buf , options ) } }
Create an ETag generator function, generating ETags with
the given options.

@param {object} options
@return {function}
@private
Create an ETag generator function generating ETags with the given options .