diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ccbb583 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +list/_full_list.txt diff --git a/list/yeno b/list/ieno similarity index 100% rename from list/yeno rename to list/ieno diff --git a/scripts/make-full-list.js b/scripts/make-full-list.js new file mode 100644 index 0000000..4e4faa2 --- /dev/null +++ b/scripts/make-full-list.js @@ -0,0 +1,18 @@ +const { readdir, writeFile, readFile } = require('fs/promises'); + +async function main() { + let res = ""; + let list = await readdir('.'); + list = list.sort((x, y) => x.toLowerCase() < y.toLowerCase() ? -1 : 1); + for (let f of list) { + let c = await readFile(f, 'utf8'); + let l = c.split('\n')[0]; + res += l; + if (!l.endsWith('\n')) { res += '\n'; } + } + await writeFile('_full_list.txt', res); +} + +main(); + +