ai-nevermore 0.0.8 → 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/README.md +2 -1
- package/bin/nevermore +6 -1
- package/foo.html +108 -108
- package/package.json +2 -2
- package/src/html.mjs +2 -2
- package/decoded.jpg +0 -0
package/README.md
CHANGED
|
@@ -128,7 +128,8 @@ Roadmap
|
|
|
128
128
|
- [x] stdin, stdout support
|
|
129
129
|
- [x] custom dictionary
|
|
130
130
|
- [x] image encoding
|
|
131
|
-
- [
|
|
131
|
+
- [x] web component decoder
|
|
132
|
+
- [x] markup obfuscation
|
|
132
133
|
- [ ] self randomizing dictionary
|
|
133
134
|
- [ ] add a replacement mode (opposed to a tokenizer based solution)
|
|
134
135
|
|
package/bin/nevermore
CHANGED
|
@@ -124,7 +124,12 @@ yargs(hideBin(process.argv))
|
|
|
124
124
|
}else{
|
|
125
125
|
const target = await readFile(argv['input-file']);
|
|
126
126
|
const parsed = parse(target.toString());
|
|
127
|
-
|
|
127
|
+
let idx = null;
|
|
128
|
+
if(argv['custom-dictionary']){
|
|
129
|
+
const result = await readFile(argv['custom-dictionary']);
|
|
130
|
+
idx = result.toString();
|
|
131
|
+
}
|
|
132
|
+
result = await transformHTML(parsed, idx);
|
|
128
133
|
}
|
|
129
134
|
if(result && argv['unified-output']){
|
|
130
135
|
await writeFile(argv['unified-output'], result);
|