22 lines
856 B
JSON
22 lines
856 B
JSON
{
|
|
"name": "base64",
|
|
"section": 1,
|
|
"title": "encode or decode base64",
|
|
"synopsis": ["base64 [OPTION]... [FILE]", "base64 -d [OPTION]... [FILE]"],
|
|
"description": "Encodes binary input to Base64, or decodes Base64 to raw bytes. Default reads stdin or FILE; decode output uses raw writes when available (process.stdout.write or ctx.bareOsBinWrite).",
|
|
"options": [
|
|
{ "flag": "-d, --decode", "meaning": "Decode incoming Base64" },
|
|
{
|
|
"flag": "-w COLS, --wrap",
|
|
"meaning": "Wrap encoded lines at COLS (0 = no wrap)"
|
|
},
|
|
{ "flag": "-h, --help", "meaning": "Print usage" }
|
|
],
|
|
"keywords": ["base64", "bare-os", "coreutils"],
|
|
"examples": [
|
|
{ "caption": "encode a file", "code": "base64 < binary.bin > text.b64" },
|
|
{ "caption": "decode", "code": "base64 -d text.b64 > out.bin" }
|
|
],
|
|
"listCategory": "coreutils"
|
|
}
|