ai-nevermore 0.0.8 → 0.0.9
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/bin/nevermore +6 -1
- package/foo.html +108 -108
- package/package.json +1 -1
- package/src/html.mjs +2 -2
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);
|