🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/buffer

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/buffer

Buffer and encoding utilities: base64, base64url, hex, byte operations

latest
npmnpm
Version
0.3.0
Version published
Maintainers
4
Created
Source

@robinpath/buffer

Buffer and encoding utilities: base64, base64url, hex, byte operations

Category Functions Auth License

Why use this module?

The buffer module lets you:

  • Create a base64 buffer from a string
  • Convert a base64 buffer to string
  • Create base64 from hex string
  • Convert base64 to hex string
  • Encode string to base64

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/buffer

Quick Start

No credentials needed — start using it right away:

buffer.toString "aGVsbG8="

Available Functions

FunctionDescription
buffer.fromStringCreate a base64 buffer from a string
buffer.toStringConvert a base64 buffer to string
buffer.fromHexCreate base64 from hex string
buffer.toHexConvert base64 to hex string
buffer.toBase64Encode string to base64
buffer.fromBase64Decode base64 to string
buffer.toBase64UrlEncode string to URL-safe base64
buffer.fromBase64UrlDecode URL-safe base64 to string
buffer.byteLengthGet the byte length of a string
buffer.concatConcatenate multiple base64 buffers
buffer.compareCompare two base64 buffers
buffer.isBase64Check if a string is valid base64

Examples

Convert a base64 buffer to string

buffer.toString "aGVsbG8="

Create base64 from hex string

buffer.fromHex "48656c6c6f"

Convert base64 to hex string

buffer.toHex "aGVsbG8="

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/buffer";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  buffer.toString "aGVsbG8="
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

License

MIT

Keywords

buffer

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts