claudeunmask 1.0.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.
Files changed (2) hide show
  1. package/index.js +19 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,19 @@
1
+
2
+ function unmask (theData) {
3
+ var retVal = [];
4
+ for (curRow of theData) {
5
+ var retRow = {};
6
+ for (const [key, value] of Object.entries(curRow)) {
7
+ let newValue = value;
8
+
9
+ if (newValue.startsWith ("m$k_")) {
10
+ newValue = newValue.replace ("m$k_","");
11
+ newValue = newValue.split('').reverse().join('');
12
+ }
13
+ retRow[key] = newValue;
14
+ }
15
+ retVal.push (retRow);
16
+ }
17
+
18
+ return retVal;
19
+ }
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "claudeunmask",
3
+ "version": "1.0.0",
4
+ "description": "claude unmask test",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "me",
10
+ "license": "ISC"
11
+ }