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 .
Creates a function that returns an ETag generator that will generate the ETag for the given body.