Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/hamrishealth.aplikasipos.info/node_modules/pbkdf2/lib/
Upload File :
Current File : /home/aplikasiposinfo/www/hamrishealth.aplikasipos.info/node_modules/pbkdf2/lib/to-buffer.js

var Buffer = require('safe-buffer').Buffer

module.exports = function (thing, encoding, name) {
  if (Buffer.isBuffer(thing)) {
    return thing
  } else if (typeof thing === 'string') {
    return Buffer.from(thing, encoding)
  } else if (ArrayBuffer.isView(thing)) {
    return Buffer.from(thing.buffer)
  } else {
    throw new TypeError(name + ' must be a string, a Buffer, a typed array or a DataView')
  }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]