import CSVFileMixins from 'causal-net/packages/causality-storage/src/CSVFile.mixins.js'
CSVFileMixins
Extends:
StorageClass → CSVFileMixins
This CSVFileMixins class provide mixins for handle read/write/fetch csv content
Method Summary
Public Methods | ||
public |
async fetchCSVFile(url: Url , filePath: String ): Promise fetch CSV file, transform to get raw pixel data and save to file at the filePath |
|
public |
async readCSVFile(filePath: String ): Promise Read CSV content as item array given the file path |
|
public |
async writeCSVFile(): * |
Public Methods
public async fetchCSVFile(url: Url , filePath: String ): Promise source
fetch CSV file, transform to get raw pixel data and save to file at the filePath
Params:
Name | Type | Attribute | Description |
url | Url | url for png file |
|
filePath | String | file name to save content |
Return:
Promise | Array content promiser |
public async readCSVFile(filePath: String ): Promise source
Read CSV content as item array given the file path
Params:
Name | Type | Attribute | Description |
filePath | String | full file path |
Return:
Promise | Array content promise |