Skip to content

Commit

Permalink
Update docs for base64 operators (#8575)
Browse files Browse the repository at this point in the history
* Update docs for decodebase64 and encodebase64 operator
* Add exmaples for decodebase64 and encodebase64 operator
  • Loading branch information
Leilei332 committed Sep 6, 2024
1 parent 9a3f1d2 commit f0cb57f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
created: 20240831025944330
modified: 20240831041423075
tags: [[decodebase64 Operator]] [[Operator Examples]]
title: decodebase64 Operator (Examples)

<<.operator-example 1 "[[dGVzdA==]decodebase64[]]">>

<<.operator-example 2 "[[8J+Yjg==]decodebase64[]]">>

<<.operator-example 3 "[[8J-Yjg==]decodebase64:urlsafe[]]">>
8 changes: 5 additions & 3 deletions editions/tw5.com/tiddlers/filters/decodebase64 Operator.tid
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
caption: decodebase64
created: 20240831034919913
from-version: 5.2.6
modified: 20240831034931703
op-input: a [[selection of titles|Title Selection]]
op-output: the input with base 64 decoding applied
op-suffix: optional: `binary` to produce binary output, `urlsafe` for URL-safe input
op-parameter:
op-parameter-name:
op-purpose: apply base 64 decoding to a string
op-purpose: apply [[base 64|Base64]] decoding to a string
op-suffix: optional: `binary` to produce binary output, `urlsafe` for URL-safe input
tags: [[Filter Operators]] [[String Operators]]
title: decodebase64 Operator
type: text/vnd.tiddlywiki
from-version: 5.2.6

See Mozilla Developer Network for details of [[base 64 encoding|https://developer.mozilla.org/en-US/docs/Glossary/Base64]]. TiddlyWiki uses [[library code from @nijikokun|https://gist.github.com/Nijikokun/5192472]] to handle the conversion.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
created: 20240831025156306
modified: 20240831041537886
tags: [[encodebase64 Operator]] [[Operator Examples]]
title: encodebase64 Operator (Examples)

<<.operator-example 1 "[[test]encodebase64[]]">>

<<.operator-example 2 "[[😎]encodebase64[]]">>

<<.operator-example 3 "[[😎]encodebase64:urlsafe[]]">>
8 changes: 5 additions & 3 deletions editions/tw5.com/tiddlers/filters/encodebase64 Operator.tid
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
caption: encodebase64
created: 20240831034955575
from-version: 5.2.6
modified: 20240831035003716
op-input: a [[selection of titles|Title Selection]]
op-output: the input with base 64 encoding applied
op-suffix: optional: `binary` to treat input as binary data, `urlsafe` for URL-safe output
op-parameter:
op-parameter-name:
op-purpose: apply base 64 encoding to a string
op-purpose: apply [[base 64|Base64]] encoding to a string
op-suffix: optional: `binary` to treat input as binary data, `urlsafe` for URL-safe output
tags: [[Filter Operators]] [[String Operators]]
title: encodebase64 Operator
type: text/vnd.tiddlywiki
from-version: 5.2.6

See Mozilla Developer Network for details of [[base 64 encoding|https://developer.mozilla.org/en-US/docs/Glossary/Base64]]. TiddlyWiki uses [[library code from @nijikokun|https://gist.github.com/Nijikokun/5192472]] to handle the conversion.

Expand Down

0 comments on commit f0cb57f

Please sign in to comment.