360 Secure SkillHub
360 安全技能中心

base64-toolkit

该 Skill 提供一个 Node.js 模块,用于标准 base64 编码与解码、URL-safe 编码、base64 字符串有效性校验与检测,并声明支持 Buffer 及文件数据的编解码。调用方式为在代码中引入模块后调用 encode、decode、isValid、encodeURLSafe 等方法。

jpengcheng523-netizen
jpengcheng523-netizen
热度 40.83
最近更新 2026-05-11 17:36:41
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add jpeng-base64-toolkit
Metadata
name
base64-toolkit
description
Provides base64 encoding, decoding, and validation utilities for data handling and transformation. Use when you need to encode or decode base64 data, validate base64 strings, or convert between formats.

Base64 Toolkit

Encoding, decoding, and validation utilities for base64 data.

Usage

const b64 = require('./skills/base64-toolkit');

// Encode
const encoded = b64.encode('Hello World');

// Decode
const decoded = b64.decode('SGVsbG8gV29ybGQ=');

// Validate
const valid = b64.isValid('SGVsbG8gV29ybGQ=');

// URL-safe encoding
const urlSafe = b64.encodeURLSafe('data?param=value');

Features

  • Standard base64 encoding/decoding
  • URL-safe base64 support
  • Validation and detection
  • Buffer support
  • File encoding/decoding