Skip to content

Commit

Permalink
Merge pull request #745 from hyoo-ru/encode-as-str
Browse files Browse the repository at this point in the history
$mol_base64_encode_node: str as string
  • Loading branch information
stan-donarise authored Mar 1, 2025
2 parents dd50b47 + 17845fb commit e8f4b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base64/encode/encode.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace $ {
if (! str) return ''
if (Buffer.isBuffer(str)) return str.toString('base64')

return Buffer.from(str).toString('base64')
return Buffer.from(str as string).toString('base64')
}

$.$mol_base64_encode = $mol_base64_encode_node
Expand Down

0 comments on commit e8f4b74

Please sign in to comment.