/
opt
/
canhelp
/
node_modules
/
@petamoriken
/
float16
/
inspect
/
/opt/canhelp/node_modules/@petamoriken/float16/inspect
mkdir
upload
Name
Size
Mode
Actions
node.cjs
608
0644
edit
dl
rm
node.mjs
575
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/@petamoriken/float16/inspect/node.cjs
(608B)
/* eslint-env node */ "use strict"; /** * Custom inspect function for Node.js, Deno, and Bun * * ``` * Float16Array.prototype[Symbol.for("nodejs.util.inspect.custom")] = customInspect; * ``` * @param {number} _deps * @param {import("node:util").InspectOptions} options * @param {import("node:util").inspect} inspect * @returns {string} */ exports.customInspect = function customInspect(_deps, options, inspect) { const length = this.length; const array = []; for (let i = 0; i < length; ++i) { array[i] = this[i]; } return `Float16Array(${length}) ${inspect(array, options)}`; };
Save
cmd:
run