update wordlist

This commit is contained in:
2023-07-12 22:47:42 +02:00
parent 26c9dff309
commit 6909217ad6
4 changed files with 7 additions and 8 deletions

View File

@@ -27,13 +27,12 @@ function convertAndSaveWordlistAsJSON() {
.filter((entry) => entry !== '')
.map((entry) => entry.trim())
// Remove duplicates
const set = new Set(lines)
const name = basename(filename, 'utf-8').slice(0, -4)
const set = new Set(lines) // remove duplicates
const name = basename(filename, 'utf-8').slice(0, -4) // trim .txt
wordlist[name] = [...set]
})
writeFileSync('./src/wordlist.json', JSON.stringify(wordlist))
writeFileSync('./src/wordlist.json', JSON.stringify(wordlist), 'utf-8')
}
convertAndSaveWordlistAsJSON()

View File

@@ -1,6 +1,6 @@
{
"name": "canihazusername",
"version": "2.3.6",
"version": "2.4.0",
"description": "username generator. typed, simple and customizable",
"packageManager": "pnpm@8.6.7",
"type": "module",
@@ -24,7 +24,7 @@
}
},
"scripts": {
"generate": "git submodule update && node ./generate/wordlist.js",
"generate": "git submodule update --recursive --remote --init && node ./generate/wordlist.js",
"dev": "tsc -w",
"build": "tsup src/index.ts --format cjs,esm --dts --sourcemap",
"docs": "pnpm run build && parcel build --target docs demo/index.html",

File diff suppressed because one or more lines are too long