UNPKG

gdal_info.js

Version:

This is a fork of gdal3.js that includes gdal_location info. gdal3.js is a port of Gdal applications (**gdal_translate**, **ogr2ogr**, **gdal_rasterize**, **gdalwarp**, **gdaltransform**) to Webassembly. It allows you to convert raster and vector geospati

21 lines (19 loc) 616 B
import getFileList from '../helper/getFileList'; /** * Get paths of created files. Returns empty array on Node.js. * * @module f/getOutputFiles * @async * @return {Promise<Array<TypeDefs.FileInfo>>} "Promise" returns path and size of created files. * @example * const files = await Gdal.getOutputFiles(); * files.forEach((fileInfo) => { * console.log(`file path: ${fileInfo.path}, file size: ${fileInfo.size}`); * }); */ export default function getOutputFiles() { return new Promise((resolve) => { const files = getFileList(); resolve(files); }); }