@iebh/reflib 2.4.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.ignore CHANGED
@@ -1 +1 @@
1
- test/data/
1
+ test/data/
package/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022 Bond University Institute for Evidence-Based Healthcare
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Bond University Institute for Evidence-Based Healthcare
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,271 +1,271 @@
1
- Reflib
2
- ======
3
- Reference library processing for Node.
4
-
5
- This library provides various read/write functionality to process citation libraries and handle individual references (henceforth "Refs").
6
-
7
- This module forms part of the [Systematic Review Accelerator](https://sr-accelerator.com)
8
-
9
-
10
- Compatibility
11
- =============
12
-
13
- | Library | Extension(s) | Read | Write |
14
- |------------------------|-----------------|--------------------|--------------------|
15
- | Comma Separated Values | `.csv` | :x: | :x: |
16
- | EndNote ENL | `.enl` | :x: | :x: |
17
- | EndNote ENLX | `.enlx` | :x: | :x: |
18
- | EndNote XML | `.xml` | :heavy_check_mark: | :heavy_check_mark: |
19
- | JSON | `.json` | :heavy_check_mark: | :heavy_check_mark: |
20
- | Medline | `.nbib` | :heavy_check_mark: | :heavy_check_mark: |
21
- | RIS | `.ris` | :heavy_check_mark: | :heavy_check_mark: |
22
- | Tab Separated Values | `.tsv` | :x: | :x: |
23
-
24
-
25
- **Notes on different formats**:
26
-
27
- * Medline seems to implement a totally different [publication type system](https://www.nlm.nih.gov/mesh/pubtypes.html) than others. Reflib will attempt to guess the best match, storing the original type in the `medlineType` key. Should the citation library be exported _back_ to Medline / `.nbib` files this key will take precedence to avoid data loss
28
-
29
-
30
- Reference Structure
31
- ===================
32
- Reflib creates a simple Plain-Old-JavaScript-Object (POJO) for each reference it parses, or writes to a file format when given a collection of the same.
33
-
34
- Each reference has the following standardized fields, these are translated from whatever internal format each module uses - e.g. the `TY` RIS field is automatically translated to `title`.
35
-
36
-
37
- | Field | Type | Description |
38
- |------------------|-----------------|----------------------------------------------------------------------------------------|
39
- | recNumber | `number` | The sorting number of the reference. Not present in RIS files |
40
- | type | `string` | A supported [reference type](#reference-types) (e.g. journalArticle) |
41
- | title | `string` | The reference's main title |
42
- | journal | `string` | The reference's secondary title, this is usually the journal for most published papers |
43
- | authors | `array<string>` | An array of each Author in the originally specified format |
44
- | date | `string` | The raw, internal date of the reference |
45
- | urls | `array<string>` | An array of each URL for the reference |
46
- | pages | `string` | The page reference, usually in the format `123-4` |
47
- | volume | `string` | |
48
- | number | `string` | |
49
- | isbn | `string` | |
50
- | abstract | `string` | |
51
- | label | `string` | |
52
- | caption | `string` | |
53
- | notes | `string` | |
54
- | address | `string` | |
55
- | researchNotes | `string` | |
56
- | keywords | `array<string>` | Optional list of keywords that apply to the reference |
57
- | accessDate | `string` | |
58
- | accession | `string` | [Accession numbers spec](https://support.nlm.nih.gov/knowledgebase/article/KA-03434/en-us), can sometimes be the PubMed ID |
59
- | doi | `string` | |
60
- | section | `string` | |
61
- | language | `string` | |
62
- | researchNotes | `string` | |
63
- | databaseProvider | `string` | |
64
- | database | `string` | |
65
- | workType | `string` | |
66
- | custom1 | `string` | |
67
- | custom2 | `string` | |
68
- | custom3 | `string` | |
69
- | custom4 | `string` | |
70
- | custom5 | `string` | |
71
- | custom6 | `string` | |
72
- | custom7 | `string` | |
73
-
74
-
75
- Reference Types
76
- ---------------
77
- As with refs the following ref types are supported and translated from the module internal formats.
78
-
79
-
80
- ```
81
- aggregatedDatabase
82
- ancientText
83
- artwork
84
- audioVisualMaterial
85
- bill
86
- blog
87
- book
88
- bookSection
89
- case
90
- catalog
91
- chartOrTable
92
- classicalWork
93
- computerProgram
94
- conferencePaper
95
- conferenceProceedings
96
- dataset
97
- dictionary
98
- editedBook
99
- electronicArticle
100
- electronicBook
101
- electronicBookSection
102
- encyclopedia
103
- equation
104
- figure
105
- filmOrBroadcast
106
- generic
107
- governmentDocument
108
- grant
109
- hearing
110
- journalArticle
111
- legalRuleOrRegulation
112
- magazineArticle
113
- manuscript
114
- map
115
- music
116
- newspaperArticle
117
- onlineDatabase
118
- onlineMultimedia
119
- pamphlet
120
- patent
121
- personalCommunication
122
- report
123
- serial
124
- standard
125
- statute
126
- thesis
127
- unknown
128
- unpublished
129
- web
130
- ```
131
-
132
-
133
-
134
- API
135
- ===
136
- Each API is available either from the default `reflib` object or as a separate import.
137
-
138
-
139
- ```javascript
140
- import reflib from 'reflib'; // Import everything as `reflib`
141
- reflib.readFile(path);
142
- reflib.writeFile(path, refs);
143
-
144
-
145
- import {readFile, writeFile} from 'reflib'; // Import specific functions
146
- readFile(path);
147
- writeFile(path, refs);
148
- ```
149
-
150
-
151
- formats
152
- =======
153
- Available: Node + Browser
154
- A lookup object of all supported citation library formats.
155
- Each key is the unique ID of that module.
156
-
157
- Properties are:
158
-
159
- | Key | Type | Description |
160
- |--------------|-----------------|------------------------------------------------------------------------|
161
- | `id` | `String` | The unique ID of that module (same as object key) |
162
- | `title` | `String` | Longer, human readable title of the module |
163
- | `titleShort` | `String` | Shorter, human readable title of the module |
164
- | `ext` | `Array<String>` | Array of output file extensions, first extension should be the default |
165
- | `canRead` | `boolean` | Whether the format is supported when reading a citation library |
166
- | `canWrite` | `boolean` | Whether the format is supported when writing a citation library |
167
-
168
-
169
- identifyFormat(path)
170
- ====================
171
- Available: Node + Browser
172
- Attempt to determine the format of a file on disk from its path. The file does not need to actually exist.
173
-
174
- ```javascript
175
- identifyFormat('My Refs.csv') //= csv
176
- identifyFormat('My Refs.json') //= json
177
- identifyFormat('My Refs.nbib') //= nbib
178
- identifyFormat('My Refs.txt.ris') //= ris
179
- identifyFormat('MY REFS.TXT.RIS') //= ris
180
- identifyFormat('My Refs.data.tsv') //= tsv
181
- identifyFormat('My Refs.xml') //= endnoteXml
182
- ```
183
-
184
-
185
- readFile(path, options)
186
- =======================
187
- Available: Node
188
- Read a file on disk, returning a Promise which will resolve with an array of all Refs extracted.
189
-
190
- ```javascript
191
- reflib.readFile('./data/json/json1.json')
192
- .then(refs => /* Do something with Ref collection */)
193
- ```
194
-
195
- An emitter is available to track progress while reading. Note that due to the chainable nature of promises the first return contains the `emitter` key only:
196
-
197
- ```javascript
198
- let reader = reflib.readFile('./data/json/json1.json');
199
-
200
- reader.emitter
201
- .on('progress', ({readBytes, totalSize, refsFound}) => /* Report progress somehow */);
202
- .on('end', ({refsFound}) => /* Report progress somehow */);
203
-
204
- reader
205
- .then(refs => /* Do something with Ref collection */)
206
- ```
207
-
208
- uploadFile(options)
209
- ===================
210
- Available: Browser
211
- Prompt the user for a file and process it into an array of citations.
212
-
213
- ```javascript
214
- reflib.uploadFile({ // Additional options
215
- file, // Optional File object if known, if omitted this function will prompt the user to select a file
216
- onStart, // Async function called as `(File)` when starting the read stage
217
- onProgress, // Function called as `(position, totalSize)` when processing the file
218
- onEnd, // Async function called as `()` when the read stage has completed
219
- })
220
- .then(refs => /* Do something with Ref collection */)
221
- ```
222
-
223
-
224
- writeFile(path, refs, options)
225
- ==============================
226
- Available: Node
227
- Write a file back to disk, returning a Promise which will resolve when done.
228
-
229
- ```javascript
230
- reflib.writeFile('MyRefs.xml', refs);
231
- ```
232
-
233
-
234
-
235
- readStream(moduleId, inputStream, options)
236
- ==========================================
237
- Available: Node + Browser
238
- Low level worker of `readFile()`.
239
- Accept an input Stream.Readable and return a emitter which will emit each Ref found.
240
-
241
- ```javascript
242
- reflib.readStream('json', createReadStream('./data/json/json1.json'))
243
- .on('end', ()=> /* Finished reading */)
244
- .on('error', err => /* Deal with errors */)
245
- .on('ref', ref => /* Do something with extracted Ref */)
246
- ```
247
-
248
-
249
- writeStream(moduleId, outputStream, options)
250
- ============================================
251
- Available: Node + Browser
252
- Low level worker of `writeFile()`.
253
- Return an object with methods to call to write to a given stream.
254
- The returned object will have a `start()`, `end()` and `write(ref)` function which can be called to write to the original input stream.
255
-
256
- ```javascript
257
- // Convert a JSON file to EndNoteXML via a stream
258
- let output = reflib.writeStream('json', createWriteStream('./MyRefs.xml'));
259
-
260
- output.start(); // Begin stream writing
261
-
262
- reflib.readStream('json', createReadStream('./data/json/json1.json'))
263
- .on('ref', ref => output.write(ref))
264
- .on('end', ()=> output.end())
265
- ```
266
-
267
-
268
- Credits
269
- =======
270
- Developed for the [Bond University Institute for Evidence-Based Healthcare](https://iebh.bond.edu.au).
271
- Please contact [the author](mailto:matt_carter@bond.edu.au) with any issues.
1
+ Reflib
2
+ ======
3
+ Reference library processing for Node.
4
+
5
+ This library provides various read/write functionality to process citation libraries and handle individual references (henceforth "Refs").
6
+
7
+ This module forms part of the [Systematic Review Accelerator](https://sr-accelerator.com)
8
+
9
+
10
+ Compatibility
11
+ =============
12
+
13
+ | Library | Extension(s) | Read | Write |
14
+ |------------------------|-----------------|--------------------|--------------------|
15
+ | Comma Separated Values | `.csv` | :x: | :x: |
16
+ | EndNote ENL | `.enl` | :x: | :x: |
17
+ | EndNote ENLX | `.enlx` | :x: | :x: |
18
+ | EndNote XML | `.xml` | :heavy_check_mark: | :heavy_check_mark: |
19
+ | JSON | `.json` | :heavy_check_mark: | :heavy_check_mark: |
20
+ | Medline | `.nbib` | :heavy_check_mark: | :heavy_check_mark: |
21
+ | RIS | `.ris` | :heavy_check_mark: | :heavy_check_mark: |
22
+ | Tab Separated Values | `.tsv` | :x: | :x: |
23
+
24
+
25
+ **Notes on different formats**:
26
+
27
+ * Medline seems to implement a totally different [publication type system](https://www.nlm.nih.gov/mesh/pubtypes.html) than others. Reflib will attempt to guess the best match, storing the original type in the `medlineType` key. Should the citation library be exported _back_ to Medline / `.nbib` files this key will take precedence to avoid data loss
28
+
29
+
30
+ Reference Structure
31
+ ===================
32
+ Reflib creates a simple Plain-Old-JavaScript-Object (POJO) for each reference it parses, or writes to a file format when given a collection of the same.
33
+
34
+ Each reference has the following standardized fields, these are translated from whatever internal format each module uses - e.g. the `TY` RIS field is automatically translated to `title`.
35
+
36
+
37
+ | Field | Type | Description |
38
+ |------------------|-----------------|----------------------------------------------------------------------------------------|
39
+ | recNumber | `number` | The sorting number of the reference. Not present in RIS files |
40
+ | type | `string` | A supported [reference type](#reference-types) (e.g. journalArticle) |
41
+ | title | `string` | The reference's main title |
42
+ | journal | `string` | The reference's secondary title, this is usually the journal for most published papers |
43
+ | authors | `array<string>` | An array of each Author in the originally specified format |
44
+ | date | `string` | The raw, internal date of the reference |
45
+ | urls | `array<string>` | An array of each URL for the reference |
46
+ | pages | `string` | The page reference, usually in the format `123-4` |
47
+ | volume | `string` | |
48
+ | number | `string` | |
49
+ | isbn | `string` | |
50
+ | abstract | `string` | |
51
+ | label | `string` | |
52
+ | caption | `string` | |
53
+ | notes | `string` | |
54
+ | address | `string` | |
55
+ | researchNotes | `string` | |
56
+ | keywords | `array<string>` | Optional list of keywords that apply to the reference |
57
+ | accessDate | `string` | |
58
+ | accession | `string` | [Accession numbers spec](https://support.nlm.nih.gov/knowledgebase/article/KA-03434/en-us), can sometimes be the PubMed ID |
59
+ | doi | `string` | |
60
+ | section | `string` | |
61
+ | language | `string` | |
62
+ | researchNotes | `string` | |
63
+ | databaseProvider | `string` | |
64
+ | database | `string` | |
65
+ | workType | `string` | |
66
+ | custom1 | `string` | |
67
+ | custom2 | `string` | |
68
+ | custom3 | `string` | |
69
+ | custom4 | `string` | |
70
+ | custom5 | `string` | |
71
+ | custom6 | `string` | |
72
+ | custom7 | `string` | |
73
+
74
+
75
+ Reference Types
76
+ ---------------
77
+ As with refs the following ref types are supported and translated from the module internal formats.
78
+
79
+
80
+ ```
81
+ aggregatedDatabase
82
+ ancientText
83
+ artwork
84
+ audioVisualMaterial
85
+ bill
86
+ blog
87
+ book
88
+ bookSection
89
+ case
90
+ catalog
91
+ chartOrTable
92
+ classicalWork
93
+ computerProgram
94
+ conferencePaper
95
+ conferenceProceedings
96
+ dataset
97
+ dictionary
98
+ editedBook
99
+ electronicArticle
100
+ electronicBook
101
+ electronicBookSection
102
+ encyclopedia
103
+ equation
104
+ figure
105
+ filmOrBroadcast
106
+ generic
107
+ governmentDocument
108
+ grant
109
+ hearing
110
+ journalArticle
111
+ legalRuleOrRegulation
112
+ magazineArticle
113
+ manuscript
114
+ map
115
+ music
116
+ newspaperArticle
117
+ onlineDatabase
118
+ onlineMultimedia
119
+ pamphlet
120
+ patent
121
+ personalCommunication
122
+ report
123
+ serial
124
+ standard
125
+ statute
126
+ thesis
127
+ unknown
128
+ unpublished
129
+ web
130
+ ```
131
+
132
+
133
+
134
+ API
135
+ ===
136
+ Each API is available either from the default `reflib` object or as a separate import.
137
+
138
+
139
+ ```javascript
140
+ import reflib from 'reflib'; // Import everything as `reflib`
141
+ reflib.readFile(path);
142
+ reflib.writeFile(path, refs);
143
+
144
+
145
+ import {readFile, writeFile} from 'reflib'; // Import specific functions
146
+ readFile(path);
147
+ writeFile(path, refs);
148
+ ```
149
+
150
+
151
+ formats
152
+ =======
153
+ Available: Node + Browser
154
+ A lookup object of all supported citation library formats.
155
+ Each key is the unique ID of that module.
156
+
157
+ Properties are:
158
+
159
+ | Key | Type | Description |
160
+ |--------------|-----------------|------------------------------------------------------------------------|
161
+ | `id` | `String` | The unique ID of that module (same as object key) |
162
+ | `title` | `String` | Longer, human readable title of the module |
163
+ | `titleShort` | `String` | Shorter, human readable title of the module |
164
+ | `ext` | `Array<String>` | Array of output file extensions, first extension should be the default |
165
+ | `canRead` | `boolean` | Whether the format is supported when reading a citation library |
166
+ | `canWrite` | `boolean` | Whether the format is supported when writing a citation library |
167
+
168
+
169
+ identifyFormat(path)
170
+ ====================
171
+ Available: Node + Browser
172
+ Attempt to determine the format of a file on disk from its path. The file does not need to actually exist.
173
+
174
+ ```javascript
175
+ identifyFormat('My Refs.csv') //= csv
176
+ identifyFormat('My Refs.json') //= json
177
+ identifyFormat('My Refs.nbib') //= nbib
178
+ identifyFormat('My Refs.txt.ris') //= ris
179
+ identifyFormat('MY REFS.TXT.RIS') //= ris
180
+ identifyFormat('My Refs.data.tsv') //= tsv
181
+ identifyFormat('My Refs.xml') //= endnoteXml
182
+ ```
183
+
184
+
185
+ readFile(path, options)
186
+ =======================
187
+ Available: Node
188
+ Read a file on disk, returning a Promise which will resolve with an array of all Refs extracted.
189
+
190
+ ```javascript
191
+ reflib.readFile('./data/json/json1.json')
192
+ .then(refs => /* Do something with Ref collection */)
193
+ ```
194
+
195
+ An emitter is available to track progress while reading. Note that due to the chainable nature of promises the first return contains the `emitter` key only:
196
+
197
+ ```javascript
198
+ let reader = reflib.readFile('./data/json/json1.json');
199
+
200
+ reader.emitter
201
+ .on('progress', ({readBytes, totalSize, refsFound}) => /* Report progress somehow */);
202
+ .on('end', ({refsFound}) => /* Report progress somehow */);
203
+
204
+ reader
205
+ .then(refs => /* Do something with Ref collection */)
206
+ ```
207
+
208
+ uploadFile(options)
209
+ ===================
210
+ Available: Browser
211
+ Prompt the user for a file and process it into an array of citations.
212
+
213
+ ```javascript
214
+ reflib.uploadFile({ // Additional options
215
+ file, // Optional File object if known, if omitted this function will prompt the user to select a file
216
+ onStart, // Async function called as `(File)` when starting the read stage
217
+ onProgress, // Function called as `(position, totalSize)` when processing the file
218
+ onEnd, // Async function called as `()` when the read stage has completed
219
+ })
220
+ .then(refs => /* Do something with Ref collection */)
221
+ ```
222
+
223
+
224
+ writeFile(path, refs, options)
225
+ ==============================
226
+ Available: Node
227
+ Write a file back to disk, returning a Promise which will resolve when done.
228
+
229
+ ```javascript
230
+ reflib.writeFile('MyRefs.xml', refs);
231
+ ```
232
+
233
+
234
+
235
+ readStream(moduleId, inputStream, options)
236
+ ==========================================
237
+ Available: Node + Browser
238
+ Low level worker of `readFile()`.
239
+ Accept an input Stream.Readable and return a emitter which will emit each Ref found.
240
+
241
+ ```javascript
242
+ reflib.readStream('json', createReadStream('./data/json/json1.json'))
243
+ .on('end', ()=> /* Finished reading */)
244
+ .on('error', err => /* Deal with errors */)
245
+ .on('ref', ref => /* Do something with extracted Ref */)
246
+ ```
247
+
248
+
249
+ writeStream(moduleId, outputStream, options)
250
+ ============================================
251
+ Available: Node + Browser
252
+ Low level worker of `writeFile()`.
253
+ Return an object with methods to call to write to a given stream.
254
+ The returned object will have a `start()`, `end()` and `write(ref)` function which can be called to write to the original input stream.
255
+
256
+ ```javascript
257
+ // Convert a JSON file to EndNoteXML via a stream
258
+ let output = reflib.writeStream('json', createWriteStream('./MyRefs.xml'));
259
+
260
+ output.start(); // Begin stream writing
261
+
262
+ reflib.readStream('json', createReadStream('./data/json/json1.json'))
263
+ .on('ref', ref => output.write(ref))
264
+ .on('end', ()=> output.end())
265
+ ```
266
+
267
+
268
+ Credits
269
+ =======
270
+ Developed for the [Bond University Institute for Evidence-Based Healthcare](https://iebh.bond.edu.au).
271
+ Please contact [the author](mailto:matt_carter@bond.edu.au) with any issues.
package/lib/browser.js CHANGED
@@ -1,27 +1,27 @@
1
- import {downloadFile} from './downloadFile.js';
2
- import {formats} from './formats.js';
3
- import {getModule} from './getModule.js';
4
- import {identifyFormat} from './identifyFormat.js';
5
- import {readStream} from './readStream.js';
6
- import {uploadFile} from './uploadFile.js';
7
- import {writeStream} from './writeStream.js';
8
-
9
- export {
10
- downloadFile,
11
- formats,
12
- getModule,
13
- identifyFormat,
14
- readStream,
15
- uploadFile,
16
- writeStream,
17
- };
18
-
19
- export default {
20
- downloadFile,
21
- formats,
22
- getModule,
23
- identifyFormat,
24
- readStream,
25
- uploadFile,
26
- writeStream,
27
- };
1
+ import {downloadFile} from './downloadFile.js';
2
+ import {formats} from './formats.js';
3
+ import {getModule} from './getModule.js';
4
+ import {identifyFormat} from './identifyFormat.js';
5
+ import {readStream} from './readStream.js';
6
+ import {uploadFile} from './uploadFile.js';
7
+ import {writeStream} from './writeStream.js';
8
+
9
+ export {
10
+ downloadFile,
11
+ formats,
12
+ getModule,
13
+ identifyFormat,
14
+ readStream,
15
+ uploadFile,
16
+ writeStream,
17
+ };
18
+
19
+ export default {
20
+ downloadFile,
21
+ formats,
22
+ getModule,
23
+ identifyFormat,
24
+ readStream,
25
+ uploadFile,
26
+ writeStream,
27
+ };