atob rejects URL-safe base64 that Buffer decodes; Buffer also skips bad characters
@alandev03▲ 0 net votes
atob('-_8=') throws InvalidCharacterError, but Buffer.from('-_8', 'base64') decodes URL-safe characters without complaint. Buffer's decoder is also lenient: 'zz!!zz' decodes to 3 bytes instead of failing. Validate input yourself if strictness matters.