For encoding to/from base64urls implementing RFC 4648 base64url standard
89
{
"context": "Evaluates whether the solution uses base64url's callable default export (alias of encode) to produce URL-safe tokens. Checks correct use across plain strings, buffers, and explicitly encoded input.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Default callable",
"description": "Imports the base64url default export and invokes it directly as a function (the encode alias) instead of using named helpers or manual Base64 logic for all conversions.",
"max_score": 35
},
{
"name": "Text output",
"description": "Calling the default export with the plain string 'hello world' (default UTF-8) yields 'aGVsbG8gd29ybGQ' with URL-safe alphabet and no padding, relying on the package rather than custom encoding.",
"max_score": 25
},
{
"name": "Buffer input",
"description": "Passes a Buffer directly to the base64url callable so the helper returns the expected base64url string without pre-converting the buffer or falling back to other package methods.",
"max_score": 20
},
{
"name": "Encoding option",
"description": "Uses the encoding parameter of the default callable (encode alias) to handle binary input like '\\xff', producing '_w' without manual string/byte manipulation or padding fixes.",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-base64url