@sectui/operations
v0.1.2
Published
CyberChef-like data transformation operations: a TypeScript library and the ops CLI
Maintainers
Readme
@sectui/operations
Data transformation operations (encoding, decoding, hashing, extraction) inspired by CyberChef, written in TypeScript for Node.js 26 or later. Part of the sectui family of security tools for the terminal.
Install
With npm (Node.js 26 or later):
npx @sectui/operations to-base64 hello # run without installing
npm install -g @sectui/operations # then: ops to-base64 helloWith Nix, from the sectui NUR:
nix run github:sectui/nur#operations -- to-base64 hello# flake: inputs.nur-sectui.url = "github:sectui/nur";
environment.systemPackages = [ nur-sectui.packages.${system}.operations ];
# or through NUR
environment.systemPackages = [ pkgs.nur.repos.sectui.operations ];Each GitHub release also has the CLI as a single file, node ops-<version>.mjs.
Documentation
- Operations: every supported operation and its arguments
- Library: using
@sectui/operationsfrom TypeScript - CLI: the
opscommand - Templates: the
operation{...}text syntax
Quick start
ops to-base64 hello # aGVsbG8=
cat token.txt | ops from-base64 | ops url-encode --encode-all
ops render "hello my name is to-base64{hadi}" # hello my name is aGFkaQ==import { runText } from "@sectui/operations";
import { render } from "@sectui/operations/template";
runText("to-base64", "hello"); // "aGVsbG8="
render("hello my name is to-base64{hadi}"); // "hello my name is aGFkaQ=="