mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-05-31 18:59:19 +08:00
业务框架数据层静态配置表Json数据生成 + 数据结构对象代码生成插件
This commit is contained in:
14
extensions/oops-plugin-excel-to-json/node_modules/exceljs/lib/utils/browser-buffer-decode.js
generated
vendored
Normal file
14
extensions/oops-plugin-excel-to-json/node_modules/exceljs/lib/utils/browser-buffer-decode.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// eslint-disable-next-line node/no-unsupported-features/node-builtins
|
||||
const textDecoder = typeof TextDecoder === 'undefined' ? null : new TextDecoder('utf-8');
|
||||
|
||||
function bufferToString(chunk) {
|
||||
if (typeof chunk === 'string') {
|
||||
return chunk;
|
||||
}
|
||||
if (textDecoder) {
|
||||
return textDecoder.decode(chunk);
|
||||
}
|
||||
return chunk.toString();
|
||||
}
|
||||
|
||||
exports.bufferToString = bufferToString;
|
||||
Reference in New Issue
Block a user