Compute an object ID as if from git hash-object
.
npm install git-hash-object
const gitHashObject = require("git-hash-object");
gitHashObject("Hello World");
//=> "5e1c309dae7f45e0f39b1bf3ac3cd9db12e7d689"
Type: string | Buffer
The input to compute.