@robinpath/buffer 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/buffer.d.ts +181 -0
- package/dist/buffer.d.ts.map +1 -0
- package/dist/buffer.js +61 -0
- package/dist/buffer.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/package.json +13 -0
package/dist/buffer.d.ts
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { BuiltinHandler } from "@wiredwp/robinpath";
|
|
2
|
+
export declare const BufferFunctions: Record<string, BuiltinHandler>;
|
|
3
|
+
export declare const BufferFunctionMetadata: {
|
|
4
|
+
fromString: {
|
|
5
|
+
description: string;
|
|
6
|
+
parameters: ({
|
|
7
|
+
name: string;
|
|
8
|
+
dataType: string;
|
|
9
|
+
description: string;
|
|
10
|
+
formInputType: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
defaultValue?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
name: string;
|
|
15
|
+
dataType: string;
|
|
16
|
+
description: string;
|
|
17
|
+
formInputType: string;
|
|
18
|
+
required: boolean;
|
|
19
|
+
defaultValue: string;
|
|
20
|
+
})[];
|
|
21
|
+
returnType: string;
|
|
22
|
+
returnDescription: string;
|
|
23
|
+
example: string;
|
|
24
|
+
};
|
|
25
|
+
toString: {
|
|
26
|
+
description: string;
|
|
27
|
+
parameters: ({
|
|
28
|
+
name: string;
|
|
29
|
+
dataType: string;
|
|
30
|
+
description: string;
|
|
31
|
+
formInputType: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
defaultValue?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
name: string;
|
|
36
|
+
dataType: string;
|
|
37
|
+
description: string;
|
|
38
|
+
formInputType: string;
|
|
39
|
+
required: boolean;
|
|
40
|
+
defaultValue: string;
|
|
41
|
+
})[];
|
|
42
|
+
returnType: string;
|
|
43
|
+
returnDescription: string;
|
|
44
|
+
example: string;
|
|
45
|
+
};
|
|
46
|
+
fromHex: {
|
|
47
|
+
description: string;
|
|
48
|
+
parameters: {
|
|
49
|
+
name: string;
|
|
50
|
+
dataType: string;
|
|
51
|
+
description: string;
|
|
52
|
+
formInputType: string;
|
|
53
|
+
required: boolean;
|
|
54
|
+
}[];
|
|
55
|
+
returnType: string;
|
|
56
|
+
returnDescription: string;
|
|
57
|
+
example: string;
|
|
58
|
+
};
|
|
59
|
+
toHex: {
|
|
60
|
+
description: string;
|
|
61
|
+
parameters: {
|
|
62
|
+
name: string;
|
|
63
|
+
dataType: string;
|
|
64
|
+
description: string;
|
|
65
|
+
formInputType: string;
|
|
66
|
+
required: boolean;
|
|
67
|
+
}[];
|
|
68
|
+
returnType: string;
|
|
69
|
+
returnDescription: string;
|
|
70
|
+
example: string;
|
|
71
|
+
};
|
|
72
|
+
toBase64: {
|
|
73
|
+
description: string;
|
|
74
|
+
parameters: {
|
|
75
|
+
name: string;
|
|
76
|
+
dataType: string;
|
|
77
|
+
description: string;
|
|
78
|
+
formInputType: string;
|
|
79
|
+
required: boolean;
|
|
80
|
+
}[];
|
|
81
|
+
returnType: string;
|
|
82
|
+
returnDescription: string;
|
|
83
|
+
example: string;
|
|
84
|
+
};
|
|
85
|
+
fromBase64: {
|
|
86
|
+
description: string;
|
|
87
|
+
parameters: {
|
|
88
|
+
name: string;
|
|
89
|
+
dataType: string;
|
|
90
|
+
description: string;
|
|
91
|
+
formInputType: string;
|
|
92
|
+
required: boolean;
|
|
93
|
+
}[];
|
|
94
|
+
returnType: string;
|
|
95
|
+
returnDescription: string;
|
|
96
|
+
example: string;
|
|
97
|
+
};
|
|
98
|
+
toBase64Url: {
|
|
99
|
+
description: string;
|
|
100
|
+
parameters: {
|
|
101
|
+
name: string;
|
|
102
|
+
dataType: string;
|
|
103
|
+
description: string;
|
|
104
|
+
formInputType: string;
|
|
105
|
+
required: boolean;
|
|
106
|
+
}[];
|
|
107
|
+
returnType: string;
|
|
108
|
+
returnDescription: string;
|
|
109
|
+
example: string;
|
|
110
|
+
};
|
|
111
|
+
fromBase64Url: {
|
|
112
|
+
description: string;
|
|
113
|
+
parameters: {
|
|
114
|
+
name: string;
|
|
115
|
+
dataType: string;
|
|
116
|
+
description: string;
|
|
117
|
+
formInputType: string;
|
|
118
|
+
required: boolean;
|
|
119
|
+
}[];
|
|
120
|
+
returnType: string;
|
|
121
|
+
returnDescription: string;
|
|
122
|
+
example: string;
|
|
123
|
+
};
|
|
124
|
+
byteLength: {
|
|
125
|
+
description: string;
|
|
126
|
+
parameters: {
|
|
127
|
+
name: string;
|
|
128
|
+
dataType: string;
|
|
129
|
+
description: string;
|
|
130
|
+
formInputType: string;
|
|
131
|
+
required: boolean;
|
|
132
|
+
}[];
|
|
133
|
+
returnType: string;
|
|
134
|
+
returnDescription: string;
|
|
135
|
+
example: string;
|
|
136
|
+
};
|
|
137
|
+
concat: {
|
|
138
|
+
description: string;
|
|
139
|
+
parameters: {
|
|
140
|
+
name: string;
|
|
141
|
+
dataType: string;
|
|
142
|
+
description: string;
|
|
143
|
+
formInputType: string;
|
|
144
|
+
required: boolean;
|
|
145
|
+
}[];
|
|
146
|
+
returnType: string;
|
|
147
|
+
returnDescription: string;
|
|
148
|
+
example: string;
|
|
149
|
+
};
|
|
150
|
+
compare: {
|
|
151
|
+
description: string;
|
|
152
|
+
parameters: {
|
|
153
|
+
name: string;
|
|
154
|
+
dataType: string;
|
|
155
|
+
description: string;
|
|
156
|
+
formInputType: string;
|
|
157
|
+
required: boolean;
|
|
158
|
+
}[];
|
|
159
|
+
returnType: string;
|
|
160
|
+
returnDescription: string;
|
|
161
|
+
example: string;
|
|
162
|
+
};
|
|
163
|
+
isBase64: {
|
|
164
|
+
description: string;
|
|
165
|
+
parameters: {
|
|
166
|
+
name: string;
|
|
167
|
+
dataType: string;
|
|
168
|
+
description: string;
|
|
169
|
+
formInputType: string;
|
|
170
|
+
required: boolean;
|
|
171
|
+
}[];
|
|
172
|
+
returnType: string;
|
|
173
|
+
returnDescription: string;
|
|
174
|
+
example: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
export declare const BufferModuleMetadata: {
|
|
178
|
+
description: string;
|
|
179
|
+
methods: string[];
|
|
180
|
+
};
|
|
181
|
+
//# sourceMappingURL=buffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buffer.d.ts","sourceRoot":"","sources":["../src/buffer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAoC,MAAM,oBAAoB,CAAC;AAgD3F,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAE1D,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;CAGhC,CAAC"}
|
package/dist/buffer.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
const fromString = (args) => {
|
|
2
|
+
const str = String(args[0] ?? "");
|
|
3
|
+
const encoding = args[1] ?? "utf-8";
|
|
4
|
+
return Buffer.from(str, encoding).toString("base64");
|
|
5
|
+
};
|
|
6
|
+
const toString = (args) => {
|
|
7
|
+
const b64 = String(args[0] ?? "");
|
|
8
|
+
const encoding = args[1] ?? "utf-8";
|
|
9
|
+
return Buffer.from(b64, "base64").toString(encoding);
|
|
10
|
+
};
|
|
11
|
+
const fromHex = (args) => Buffer.from(String(args[0] ?? ""), "hex").toString("base64");
|
|
12
|
+
const toHex = (args) => Buffer.from(String(args[0] ?? ""), "base64").toString("hex");
|
|
13
|
+
const toBase64 = (args) => Buffer.from(String(args[0] ?? ""), "utf-8").toString("base64");
|
|
14
|
+
const fromBase64 = (args) => Buffer.from(String(args[0] ?? ""), "base64").toString("utf-8");
|
|
15
|
+
const toBase64Url = (args) => {
|
|
16
|
+
return Buffer.from(String(args[0] ?? ""), "utf-8").toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
17
|
+
};
|
|
18
|
+
const fromBase64Url = (args) => {
|
|
19
|
+
let b64 = String(args[0] ?? "").replace(/-/g, "+").replace(/_/g, "/");
|
|
20
|
+
while (b64.length % 4)
|
|
21
|
+
b64 += "=";
|
|
22
|
+
return Buffer.from(b64, "base64").toString("utf-8");
|
|
23
|
+
};
|
|
24
|
+
const byteLength = (args) => Buffer.byteLength(String(args[0] ?? ""), "utf-8");
|
|
25
|
+
const concat = (args) => {
|
|
26
|
+
const buffers = args.map((b64) => Buffer.from(String(b64), "base64"));
|
|
27
|
+
return Buffer.concat(buffers).toString("base64");
|
|
28
|
+
};
|
|
29
|
+
const compare = (args) => {
|
|
30
|
+
const a = Buffer.from(String(args[0] ?? ""), "base64");
|
|
31
|
+
const b = Buffer.from(String(args[1] ?? ""), "base64");
|
|
32
|
+
return Buffer.compare(a, b);
|
|
33
|
+
};
|
|
34
|
+
const isBase64 = (args) => {
|
|
35
|
+
const str = String(args[0] ?? "");
|
|
36
|
+
if (str.length === 0)
|
|
37
|
+
return true;
|
|
38
|
+
return /^[A-Za-z0-9+/]*={0,2}$/.test(str) && str.length % 4 === 0;
|
|
39
|
+
};
|
|
40
|
+
export const BufferFunctions = {
|
|
41
|
+
fromString, toString, fromHex, toHex, toBase64, fromBase64, toBase64Url, fromBase64Url, byteLength, concat, compare, isBase64,
|
|
42
|
+
};
|
|
43
|
+
export const BufferFunctionMetadata = {
|
|
44
|
+
fromString: { description: "Create a base64 buffer from a string", parameters: [{ name: "str", dataType: "string", description: "Input string", formInputType: "text", required: true }, { name: "encoding", dataType: "string", description: "String encoding (default: utf-8)", formInputType: "text", required: false, defaultValue: "utf-8" }], returnType: "string", returnDescription: "Base64-encoded buffer", example: 'buffer.fromString "hello"' },
|
|
45
|
+
toString: { description: "Convert a base64 buffer to string", parameters: [{ name: "base64", dataType: "string", description: "Base64 string", formInputType: "text", required: true }, { name: "encoding", dataType: "string", description: "Output encoding (default: utf-8)", formInputType: "text", required: false, defaultValue: "utf-8" }], returnType: "string", returnDescription: "Decoded string", example: 'buffer.toString "aGVsbG8="' },
|
|
46
|
+
fromHex: { description: "Create base64 from hex string", parameters: [{ name: "hex", dataType: "string", description: "Hex string", formInputType: "text", required: true }], returnType: "string", returnDescription: "Base64 string", example: 'buffer.fromHex "48656c6c6f"' },
|
|
47
|
+
toHex: { description: "Convert base64 to hex string", parameters: [{ name: "base64", dataType: "string", description: "Base64 string", formInputType: "text", required: true }], returnType: "string", returnDescription: "Hex string", example: 'buffer.toHex "aGVsbG8="' },
|
|
48
|
+
toBase64: { description: "Encode string to base64", parameters: [{ name: "str", dataType: "string", description: "Input string", formInputType: "text", required: true }], returnType: "string", returnDescription: "Base64 string", example: 'buffer.toBase64 "hello"' },
|
|
49
|
+
fromBase64: { description: "Decode base64 to string", parameters: [{ name: "base64", dataType: "string", description: "Base64 string", formInputType: "text", required: true }], returnType: "string", returnDescription: "Decoded string", example: 'buffer.fromBase64 "aGVsbG8="' },
|
|
50
|
+
toBase64Url: { description: "Encode string to URL-safe base64", parameters: [{ name: "str", dataType: "string", description: "Input string", formInputType: "text", required: true }], returnType: "string", returnDescription: "Base64url string", example: 'buffer.toBase64Url "hello"' },
|
|
51
|
+
fromBase64Url: { description: "Decode URL-safe base64 to string", parameters: [{ name: "base64url", dataType: "string", description: "Base64url string", formInputType: "text", required: true }], returnType: "string", returnDescription: "Decoded string", example: 'buffer.fromBase64Url "aGVsbG8"' },
|
|
52
|
+
byteLength: { description: "Get the byte length of a string", parameters: [{ name: "str", dataType: "string", description: "Input string", formInputType: "text", required: true }], returnType: "number", returnDescription: "Byte length", example: 'buffer.byteLength "hello"' },
|
|
53
|
+
concat: { description: "Concatenate multiple base64 buffers", parameters: [{ name: "buffers", dataType: "string", description: "Base64 strings to concatenate", formInputType: "text", required: true }], returnType: "string", returnDescription: "Concatenated base64 string", example: 'buffer.concat "aGVs" "bG8="' },
|
|
54
|
+
compare: { description: "Compare two base64 buffers", parameters: [{ name: "a", dataType: "string", description: "First base64 string", formInputType: "text", required: true }, { name: "b", dataType: "string", description: "Second base64 string", formInputType: "text", required: true }], returnType: "number", returnDescription: "-1, 0, or 1", example: 'buffer.compare "YQ==" "Yg=="' },
|
|
55
|
+
isBase64: { description: "Check if a string is valid base64", parameters: [{ name: "str", dataType: "string", description: "String to check", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if valid base64", example: 'buffer.isBase64 "aGVsbG8="' },
|
|
56
|
+
};
|
|
57
|
+
export const BufferModuleMetadata = {
|
|
58
|
+
description: "Buffer and encoding utilities: base64, base64url, hex, byte operations",
|
|
59
|
+
methods: ["fromString", "toString", "fromHex", "toHex", "toBase64", "fromBase64", "toBase64Url", "fromBase64Url", "byteLength", "concat", "compare", "isBase64"],
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=buffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../src/buffer.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAmB,CAAC,IAAI,EAAE,EAAE;IAC1C,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAClC,MAAM,QAAQ,GAAI,IAAI,CAAC,CAAC,CAAoB,IAAI,OAAO,CAAC;IACxD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAmB,CAAC,IAAI,EAAE,EAAE;IACxC,MAAM,GAAG,GAAG,MAAM,CA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jK,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ModuleAdapter } from "@wiredwp/robinpath";
|
|
2
|
+
declare const BufferModule: ModuleAdapter;
|
|
3
|
+
export default BufferModule;
|
|
4
|
+
export { BufferModule };
|
|
5
|
+
export { BufferFunctions, BufferFunctionMetadata, BufferModuleMetadata } from "./buffer.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,QAAA,MAAM,YAAY,EAAE,aAMnB,CAAC;AAEF,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BufferFunctions, BufferFunctionMetadata, BufferModuleMetadata } from "./buffer.js";
|
|
2
|
+
const BufferModule = {
|
|
3
|
+
name: "buffer",
|
|
4
|
+
functions: BufferFunctions,
|
|
5
|
+
functionMetadata: BufferFunctionMetadata,
|
|
6
|
+
moduleMetadata: BufferModuleMetadata,
|
|
7
|
+
global: false,
|
|
8
|
+
}; // as ModuleAdapter
|
|
9
|
+
export default BufferModule;
|
|
10
|
+
export { BufferModule };
|
|
11
|
+
export { BufferFunctions, BufferFunctionMetadata, BufferModuleMetadata } from "./buffer.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE5F,MAAM,YAAY,GAAkB;IAClC,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,eAAe;IAC1B,gBAAgB,EAAE,sBAA6B;IAC/C,cAAc,EAAE,oBAA2B;IAC3C,MAAM,EAAE,KAAK;CACd,CAAC,CAAC,mBAAmB;AAEtB,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@robinpath/buffer",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": { "access": "public" },
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } },
|
|
9
|
+
"files": ["dist"],
|
|
10
|
+
"scripts": { "build": "tsc", "test": "node --import tsx --test tests/*.test.ts" },
|
|
11
|
+
"peerDependencies": { "@wiredwp/robinpath": ">=0.20.0" },
|
|
12
|
+
"devDependencies": { "@wiredwp/robinpath": "^0.30.1", "tsx": "^4.19.0", "typescript": "^5.6.0" }
|
|
13
|
+
}
|