For encoding to/from base64urls implementing RFC 4648 base64url standard
89
{
"context": "Evaluates how well the solution leverages the base64url package to generate URL-safe tokens from text or Buffer inputs as defined in the spec. The focus is on invoking the library APIs rather than hand-rolled base64 logic and honoring the encoding option where provided.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Library call",
"description": "Uses the base64url default export or encode(...) to generate tokens instead of custom base64 manipulation.",
"max_score": 35
},
{
"name": "Buffer handling",
"description": "Passes Buffer inputs directly to base64url.encode/base64url(...) without converting to intermediate strings and returns the produced URL-safe token.",
"max_score": 25
},
{
"name": "Encoding option",
"description": "When given a non-UTF-8 string input, forwards the specified encoding option to base64url.encode/base64url(...) so bytes are interpreted using that encoding.",
"max_score": 20
},
{
"name": "URL-safe output",
"description": "Relies on base64url to strip padding and apply '-'/'_' substitutions rather than manual replacements, ensuring outputs match base64url semantics.",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-base64url