Skip to main content
Glama
lu.jsโ€ข1.15 kB
var binary = require('../'); var test = require('tap').test; test('lu', function (t) { t.plan(8); // note: can't store -12667700813876161 exactly in an ieee float var buf = new Buffer([ 44, // a == 44 43, 2, // b == 555 37, 37, 213, 164, // c == 2765432101 193, 203, 115, 155, 20, 180, 81, 29, // d == 2112667700813876161 ]); binary.parse(buf) .word8lu('a') .word16lu('b') .word32lu('c') .word64lu('d') .tap(function (vars) { t.same(vars.a, 44); t.same(vars.b, 555); t.same(vars.c, 2765432101); t.ok( Math.abs(vars.d - 2112667700813876161) < 1500 ); }) ; // also check aliases here: binary.parse(buf) .word8le('a') .word16le('b') .word32le('c') .word64le('d') .tap(function (vars) { t.same(vars.a, 44); t.same(vars.b, 555); t.same(vars.c, 2765432101); t.ok( Math.abs(vars.d - 2112667700813876161) < 1500 ); }) ; });

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/consigcody94/office-whisperer'

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