Used to convert UTF-8 strings to and from base64.
Executed
Server-side
Details
var base64codec = require('base64codec');
Method | Description |
---|---|
Base64.encode | Converts a string to base64 |
Base64.decode | Converts base64 to a string |
Example
function( params, credentials ) {
var base64codec = require('base64codec');
var base64 = base64codec.Base64.decode('aGVsbG8=');
return base64;
}
{
"jsonrpc": "2.0",
"id": 17,
"result": "hello"
}
Last modified on 10 March 2020