Bixby Developer Center

Guides
References

base64

Provides simple Base64 encoding and decoding.

  • Importing with JavaScript Runtime Version 1:
      var base64 = require('base64');
  • Importing with JavaScript Runtime Version 2:
      import base64 from 'base64';

The following sections describe the available methods within this module. Each section includes a table that lists the parameters for that method, as well as the parameter's type and description.

base64.encode(str)

Encode a String as Base64

Kind: Static property of base64Returns: String
Access: Public

ParameterTypeDescription
strStringThe string to be encoded

base64.decode(str)

Decode a String from Base64

Kind: Static property of base64Returns: String
Access: Public

ParameterTypeDescription
strStringThe string to be decoded