For encoding to/from base64urls implementing RFC 4648 base64url standard
89
{
"context": "Criteria evaluates how well the solution leverages the base64url package to normalize standard base64 strings into URL-safe, unpadded output for single and batched inputs while preserving correctness for already-normalized values.",
"type": "weighted_checklist",
"checklist": [
{
"name": "fromBase64 usage",
"description": "Single-value conversion calls `base64url.fromBase64` (or the default callable `base64url(...)` with base64 input) to generate base64url output rather than manual character substitution.",
"max_score": 35
},
{
"name": "Padding removed",
"description": "Relies on base64url output (e.g., `fromBase64`) to strip `=` padding on conversions instead of ad-hoc trimming.",
"max_score": 15
},
{
"name": "URL-safe mapping",
"description": "Uses base64url conversion to swap `+`/`/` to `-`/`_`, avoiding custom replace logic.",
"max_score": 15
},
{
"name": "Batch via package",
"description": "Array normalization applies a base64url conversion (`fromBase64` or callable form) to every element while preserving order.",
"max_score": 20
},
{
"name": "Idempotent handling",
"description": "Detects or re-normalizes already URL-safe input using base64url utilities (such as `toBase64` + `fromBase64`) so unchanged content stays intact without manual checks.",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-base64url