code: function calculateBlobSha1(data) {
    return crypto.createHash('sha1').update(`blob ${data.length}\0`).update(data).digest('hex');
  }
docs: Calculates the id (sha1) of a Git Blob.
  
  @param {string|Buffer} data blob data