@pikku/addon-binary
v0.2.5
Published
Convert between binary file data (base64) and JSON, without any heavy parser dependencies. For format-specific parsing use `@pikku/addon-read-pdf`, `@pikku/addon-spreadsheet`, or `@pikku/addon-xml`.
Readme
@pikku/addon-binary
Convert between binary file data (base64) and JSON, without any heavy parser
dependencies. For format-specific parsing use @pikku/addon-read-pdf,
@pikku/addon-spreadsheet, or @pikku/addon-xml.
Functions
extractText— decode base64 file bytes into a text stringextractJson— parse base64 file bytes as JSONtoTextFile— encode a text string into base64 file bytestoJsonFile— serialize a JSON value into base64 file bytesmoveBinaryData— move data between the JSON and binary channels in either direction
Secrets
No secrets required.
Dependencies
None (pure Buffer / JSON).
