The Buffer has two methods, framecount and channelcount like so:
const buffer = new Buffer("example");
const bufferLength = buffer.framecount();
const channelCount = buffer.channelcount();
However, they are defined as properties, so calling them gets errors like this:
Would be happy to make a pull request for it, but I'm not quite sure how with this repo.