buffer.js 283 B

1234567891011
  1. 'use strict'
  2. // Buffer in node 4.x < 4.5.0 doesn't have working Buffer.from
  3. // or Buffer.alloc, and Buffer in node 10 deprecated the ctor.
  4. // .M, this is fine .\^/M..
  5. let B = Buffer
  6. /* istanbul ignore next */
  7. if (!B.alloc) {
  8. B = require('safe-buffer').Buffer
  9. }
  10. module.exports = B