-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
50 lines (50 loc) · 3.41 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"name": "ptbr-wordlist",
"version": "0.1.0",
"description": "A selection of Brazilian Portuguese words that are good enough to be used as a BIP-0039 wordlist",
"main": "index.js",
"config": {
"downloadsPath": "./downloads",
"listsPath": "./lists",
"androidDictUrl": "https://android.googlesource.com/platform/packages/inputmethods/LatinIME/+archive/master/dictionaries.tar.gz",
"bip39EnglishDictUrl": "https://raw.githubusercontent.com/fczuardi/bips/master/bip-0039/english.txt",
"bip39SpanishDictUrl": "https://raw.githubusercontent.com/fczuardi/bips/master/bip-0039/spanish.txt",
"bip39FrenchDictUrl": "https://raw.githubusercontent.com/fczuardi/bips/master/bip-0039/french.txt"
},
"scripts": {
"test": "npm run clean && npm run download && npm run csv && npm run filter && npm run crop10k && npm run a2z",
"clean": "rm -rf $npm_package_config_downloadsPath $npm_package_config_listsPath",
"download": "npm run getdict:bip39 && npm run getdict:android",
"csv": "cat $npm_package_config_downloadsPath/pt_BR_wordlist.combined | grep -E 'word=[^áéíóúâêôãõç,]{5,8},' | sed -e 's:originalFreq=::' -e 's: word=::' -e 's:f=.*,::' |sort -t, -k2 -rn > $npm_package_config_listsPath/all.csv",
"filter": "npm run filter:en && npm run filter:sp && npm run filter:fr",
"crop10k": "cat $npm_package_config_listsPath/all-no_en-no_sp-no_fr.csv|head -n 10000 > $npm_package_config_listsPath/filtered-top-10k.csv",
"a-z": "for x in {a..z};do grep \"^$x\" $npm_package_config_listsPath/filtered-top-10k.csv > $npm_package_config_listsPath/score-$x.csv && cat $npm_package_config_listsPath/score-$x.csv | sort > $npm_package_config_listsPath/alpha-$x.csv; done",
"getdict:bip39": "cd $npm_package_config_downloadsPath && curl -O $npm_package_config_bip39EnglishDictUrl && curl -O $npm_package_config_bip39SpanishDictUrl && curl -O $npm_package_config_bip39FrenchDictUrl",
"getdict:android": "cd $npm_package_config_downloadsPath && curl -O $npm_package_config_androidDictUrl",
"filter:en": "cat $npm_package_config_downloadsPath/english.txt| sed -e 's:^\\(.*\\):\\^\\1,:' > /tmp/all_en_pattern && grep -vf /tmp/all_en_pattern $npm_package_config_listsPath/all.csv > $npm_package_config_listsPath/all-no_en.csv",
"filter:sp": "cat $npm_package_config_downloadsPath/spanish.txt| sed -e 's:^\\(.*\\):\\^\\1,:' > /tmp/all_sp_pattern && grep -vf /tmp/all_sp_pattern $npm_package_config_listsPath/all-no_en.csv > $npm_package_config_listsPath/all-no_en-no_sp.csv",
"filter:fr": "cat $npm_package_config_downloadsPath/french.txt| sed -e 's:^\\(.*\\):\\^\\1,:' > /tmp/all_fr_pattern && grep -vf /tmp/all_fr_pattern $npm_package_config_listsPath/all-no_en-no_sp.csv > $npm_package_config_listsPath/all-no_en-no_sp-no_fr.csv",
"precsv":"mkdir -p $npm_package_config_listsPath",
"predownload": "mkdir -p $npm_package_config_downloadsPath",
"postgetdict:android": "cd $npm_package_config_downloadsPath && tar -zxvf dictionaries.tar.gz pt_BR* && gunzip pt_BR*.gz"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fczuardi/ptbr-wordlist.git"
},
"keywords": [
"bitcoin",
"bip39",
"ptbr",
"wordlist",
"mnemonic",
"portuguese",
"pt_BR"
],
"author": "Fabricio C Zuardi",
"license": "MIT",
"bugs": {
"url": "https://github.com/fczuardi/ptbr-wordlist/issues"
},
"homepage": "https://github.com/fczuardi/ptbr-wordlist#readme"
}