# djd-load-data **Repository Path**: mirrors_Financial-Times/djd-load-data ## Basic Information - **Project Name**: djd-load-data - **Description**: A general-purpose multi-data loader - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # loadData ## A general-purpose multi-data loader by [Ændrew][1] in 2017 ### Installation: ```bash $ npm install @financial-times/load-data --save ``` ### Usage: #### TypeScript/ES6: ```javascript import loadData from '@financial-times/load-data'; // Single file loadData('data1.csv').then(data1 => { // do something with data1 }); // Yes, you can use it with async/await... (async () => { const [data2, data3] = await loadData([ // ... and with multiple files 'data2.tsv', 'data3.json', ]); // do something with data2 and data3 }()); ``` #### Browser: ```html ``` ### Supported file types: *N.b., load-data detects file type using extension. Ensure it has the following or it will fail!* * TSV * Annotated TSV * CSV * JSON [1]: https://www.github.com/aendrew