TypeScript typings for the core buffer library
First, add it to your package.json and install it:
package.json
npm install --save typed-buffer
Then use it just as you would the buffer library:
import * as buffer from "typed-buffer";