update wordlist

This commit is contained in:
Niccolo Borgioli 2023-07-12 22:47:42 +02:00
parent 26c9dff309
commit 6909217ad6
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
4 changed files with 7 additions and 8 deletions

@ -1 +1 @@
Subproject commit 7cec9b716babec59b68075abf27fdfae90f51871 Subproject commit 3aab59e6844fe899a3fcc3949859efbc74977510

View File

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

View File

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

File diff suppressed because one or more lines are too long