Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
106 lines (106 loc) · 4.51 KB
/
Copy pathpackage.json
File metadata and controls
106 lines (106 loc) · 4.51 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "marcattacks",
"version": "2.14.0",
"description": "A powerful streaming MARC21 to RDF converter with JSONata, Catmandu Fix transformation and S3 support.",
"keywords": [
"marc21",
"iso2709",
"rdf",
"bibframe",
"jsonata",
"catmandu",
"notation3",
"linked-data",
"marcxml",
"streaming",
"s3",
"metadata-conversion"
],
"main": "dist/attacker.js",
"type": "module",
"author": "",
"repository": "https://codeberg.org/phochste/marcattacks.git",
"prepare": "npm run build:ts",
"bin": {
"marcattacks": "./dist/command.js",
"globtrotr": "./dist/globber.js"
},
"man": [
"./man/marcattacks.1",
"./man/globtrotr.1"
],
"files": [
"dist",
"man"
],
"scripts": {
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --forceExit",
"build:ts": "npx tsc",
"build:watch": "npx tsc -w",
"demo:alephseq": "npx marcattacks --to alephseq data/sample.xml",
"demo:xml": "npx marcattacks --info --from fastxml --to xml data/sample.xml",
"demo:json": "npx marcattacks --to json data/sample.xml",
"demo:jsonl": "npx marcattacks --to jsonl data/sample.xml",
"demo:rdf": "npx marcattacks --to rdf --map marc2rdf data/sample.xml",
"demo:rdf:messages": "npx marcattacks --info --to multipart --map marcinrdf --param header=\"@version \\\"1.1-messages\\\".\" --param delimiter=\"@message.\" --param noStartDelimiter=true --param noEndDelimiter=true --param parse=text:flat ./data/sample.xml",
"demo:jsonld": "npx marcattacks --to jsonl --param fix=./demo/marc2rdf.jsonata data/sample.xml",
"demo:fix": "npx marcattacks --to jsonl --map fix --param fix=./demo/example.fix data/sample.xml",
"demo:fix:rdf": "npx marcattacks --to jsonl --to rdf --map fix --param fix=./demo/marc2rdf.fix data/sample.xml",
"demo:workers": "npx marcattacks --to jsonl --to rdf --param fix=./demo/marc2rdf.jsonata --workers 4 --info data/sample.xml",
"demo:slowmap": "npx marcattacks --map ./plugin/slowmap.js --param spin_ms=10 --workers auto --to jsonl --info data/sample.xml",
"demo:explode": "npx marcattacks --map ./plugin/explode.js --workers auto --to jsonl --info data/sample.xml",
"demo:biblio": "npx marcattacks --info --from json --to multipart --fix ./demo/biblio.jsonata --param header=\"@version \\\"1.1-messages\\\".\" --param delimiter=\"@message.\" --param noStartDelimiter=true --param noEndDelimiter=true ./data/biblio.json",
"demo:parquet:avram": " npx marcattacks ./data/sample.xml --to parquet --map avram --param schema=./demo/avram.schema --info --out ./local/avram.parquet",
"demo:parquet:z00r": " npx marcattacks ./data/sample.xml --to parquet --map ./plugin/z00r.js --param schema=./demo/z00r.schema --info --out ./local/z00r.parquet",
"demo:parquet:marcinparquet": " npx marcattacks ./data/sample.xml --to parquet --map ./plugin/marcinparquet.js --param schema=./demo/marcinparquet.schema --info --out ./local/marcinparquet.parquet",
"docker:build": "docker build . -t hochstenbach/marcattacks:v0.0.1",
"docker:run": "docker run --rm -v `pwd`/data:/app/data -it hochstenbach/marcattacks:v0.0.1 --to rdf --map rdf data/sample.xml",
"docker:push": "docker push hochstenbach/marcattacks:v0.0.1",
"postversion": "npm publish && git push && git push --tags"
},
"license": "MIT",
"devDependencies": {
"@comunica/context-entries": "^4.5.0",
"@jest/globals": "^30.2.0",
"@types/jest": "^30.0.0",
"@types/n3": "^1.26.1",
"@types/node": "^24.12.2",
"@types/sax": "^1.2.7",
"@types/ssh2-sftp-client": "^9.0.5",
"@types/stream-json": "^1.7.8",
"@types/streamify-string": "^1.0.4",
"@types/tar-stream": "^3.1.4",
"eslint": "^9.39.1",
"jest": "^30.2.0",
"jest-xml-matcher": "^1.2.0",
"prettier": "^3.6.2",
"ts-jest": "^29.4.6",
"ts-node": "^10.9.2",
"typescript": "^5.9.3"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.980.0",
"@dsnp/parquetjs": "^1.8.7",
"@fast-csv/parse": "^5.0.5",
"@rdfjs/types": "^1.1.2",
"catmandu-fix-js": "^0.3.0",
"commander": "^14.0.2",
"csv-parse": "^6.2.1",
"csv-stringify": "^6.7.0",
"dotenv": "^17.2.3",
"fast-xml-parser": "^5.3.6",
"jsonata": "^2.1.0",
"jsonld": "^9.0.0",
"log4js": "^6.9.1",
"marcjs": "^3.0.2",
"n3": "^1.26.0",
"rdf-parse": "^4.0.0",
"sax": "^1.4.3",
"ssh2-sftp-client": "^12.0.1",
"stream-chain": "^3.4.0",
"stream-json": "^1.9.1",
"streamify-string": "^1.0.1",
"tar-stream": "^3.1.7",
"uuid": "^13.0.0"
}
}