Skip to main content
Glama
index.js•412 B
'use strict'; var callBound = require('call-bound'); var $byteLength = callBound('ArrayBuffer.prototype.byteLength', true); var isArrayBuffer = require('is-array-buffer'); /** @type {import('.')} */ module.exports = function byteLength(ab) { if (!isArrayBuffer(ab)) { return NaN; } return $byteLength ? $byteLength(ab) : ab.byteLength; }; // in node < 0.11, byteLength is an own nonconfigurable property

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guangxiangdebizi/PPT-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server