UNPKG

invoice-extractor

Version:

Automate and extract information from hundreds of invoices on pdf to a csv file with a single script

11 lines (9 loc) 283 B
const { rename } = require('fs/promises'); async function renameFile(from:string, to:string) { try { await rename(from, to); } catch (err) { console.log("❌ Error al intentar renombrar el archivo:", (err as Error).message); } } module.exports ={renameFile}