✏️ 编辑:to-buffer.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/pbkdf2/lib/to-buffer.js
大小:414 B · 修改:2022-11-21 20:10:40 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
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') } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF