-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
71 lines (71 loc) · 4.43 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"name": "tables",
"version": "2.3.0",
"description": "Tables is a simple command-line tool and powerful library for importing data like a CSV or JSON file into relational tables quickly and easily.",
"main": "index.js",
"bin": {
"tables": "bin/tables.js"
},
"scripts": {
"test": "mocha tests/*",
"example-water": "./bin/tables.js -i examples/nyc-water-quality-complaints.csv",
"example-water-silent": "./bin/tables.js -i examples/nyc-water-quality-complaints.csv --db=sqlite://examples/waterx-silent.sqlite --silent",
"example-water-advanced": "./bin/tables.js -i examples/nyc-water-quality-complaints.csv --db=sqlite://examples/water-advanced.sqlite --key=unique_key --index-fields=\".*date,.*name,latitude,longitude,.*borough,status\" --overwrite",
"example-water-transformer": "./bin/tables.js -i examples/nyc-water-quality-complaints.csv --db=sqlite://examples/water-transformer.sqlite --key=custom_key --transformer=examples/nyc-water-example-transformer.js --overwrite",
"example-water-models": "./bin/tables.js -i examples/nyc-water-quality-complaints.csv --db=sqlite://examples/water-models.sqlite --models=examples/nyc-water-example-models.js --overwrite",
"example-water-pipe-no-db": "cat examples/nyc-water-quality-complaints.csv | ./bin/tables.js && ls tables-import.sqlite",
"example-water-remote": "curl --silent \"https://data.cityofnewyork.us/api/views/qfe3-6dkn/rows.csv\" | ./bin/tables.js --db=sqlite://examples/water-remote.sqlite --overwrite -y",
"example-water-hook": "./bin/tables.js -i examples/nyc-water-quality-complaints.csv -c examples/nyc-water-example-hooks.js --db=sqlite://./examples/water-hooks.sqlite --overwrite -y",
"example-github-json": "curl --silent https://api.github.com/users/zzolo/followers | ./bin/tables.js --format=json --db=sqlite://./examples/github-followers.sqlite --table-name=followers --key=id",
"example-fec-bulk-candidates": "curl -L --silent \"https://www.fec.gov/files/bulk-downloads/2020/weball20.zip\" | funzip | ./bin/tables.js --db=\"sqlite://examples/fec-bulk.sqlite\" --table-name=\"candidates\" --key=\"CAND_ID\" --csv-delimiter=\"|\" --csv-headers=\"CAND_ID,CAND_NAME,CAND_ICI,PTY_CD,CAND_PTY_AFFILIATION,TTL_RECEIPTS,TRANS_FROM_AUTH,TTL_DISB,TRANS_TO_AUTH,COH_BOP, COH_COP,CAND_CONTRIB,CAND_LOANS,OTHER_LOANS,CAND_LOAN_REPAY,OTHER_LOAN_REPAY,DEBTS_OWED_BY,TTL_INDIV_CONTRIB,CAND_OFFICE_ST,CAND_OFFICE_DISTRICT,SPEC_ELECTION,PRIM_ELECTION,RUN_ELECTION,GEN_ELECTION,GEN_ELECTION_PRECENT,OTHER_POL_CMTE_CONTRIB,POL_PTY_CONTRIB,CVG_END_DT,INDIV_REFUNDS,CMTE_REFUNDS\"",
"example-chicago-ordinance-violations": "curl -L --silent \"https://data.cityofchicago.org/api/views/6br9-quuz/rows.csv?accessType=DOWNLOAD\" | ./bin/tables.js --db=\"sqlite://examples/chicago.sqlite\" --table-name=\"ordinance_violations\" --key=\"ID\" --guess-size=1000 --batch-size=1000 --index-fields=\".*date,.*name,.*number,.*disposition,.*fine,.*cost,.*code,latitude,longitude,.*borough,status\"",
"examples": "npm run example-water && npm run example-water-silent && npm run example-water-advanced && npm run example-water-transformer && npm run example-water-models && npm run example-water-pipe-no-db && npm run example-water-remote && npm run example-water-hook && npm run example-github-json && npm run example-fec-bulk-candidates",
"example-movie-render": "terminalizer render docs/tables-examples.terminalizer.yml -o docs/tables-examples.terminalizer.gif"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zzolo/tables.git"
},
"keywords": [
"CSV",
"JSON",
"SQL"
],
"author": "Alan Palazzolo",
"license": "MIT",
"bugs": {
"url": "https://github.com/zzolo/tables/issues"
},
"homepage": "https://github.com/zzolo/tables#readme",
"engines": {
"node": ">=8.9.0"
},
"dependencies": {
"chalk": "^4.1.0",
"cli-spinners": "^2.5.0",
"commander": "^6.2.1",
"debug": "^4.3.1",
"dotenv": "^8.2.0",
"event-stream": "^4.0.1",
"inquirer": "^7.3.3",
"lodash": "^4.17.20",
"log-symbols": "^4.0.0",
"log-update": "^4.0.0",
"merge2": "^1.4.1",
"moment-timezone": "^0.5.32",
"mysql2": "^2.2.5",
"pg": "^8.5.1",
"pg-hstore": "^2.3.3",
"replace-ext": "^2.0.0",
"sequelize": "^6.3.5",
"sqlite3": "^5.0.1",
"tito": "^0.6.1"
},
"devDependencies": {
"eslint": "^7.17.0",
"mocha": "^8.2.1",
"node-fetch": "^2.6.1",
"object-path": "^0.11.5",
"terminalizer": "^0.7.2"
}
}