Webpack static ReferenceError: btoa is not defined code example Example: nodejs btoa Buffer.from('Hello world!', 'binary').toString('base64')