sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
import { Dbf } from 'dbf-reader'; | |
import { Column, DataTable } from 'dbf-reader/models/dbf-file'; | |
import * as fs from 'fs'; | |
let buffer:Buffer = fs.readFileSync('/home/vini-ubnt/Documentos/HNSA/FUSMA.dbf') | |
let datatable:DataTable = Dbf.read(buffer) | |
if(datatable){ | |
datatable.rows.forEach((row: any) => { | |
datatable.columns.forEach((collum: Column) => { | |
console.log(row[collum.name]) |
{ | |
"requests": [ | |
{ | |
"image": { | |
"content": "/9j/4AAQSkZJRgABAQAASABIAAD/2wBDAAQEBAQEBAcEBAcKBwcHCg0KCgoKDRANDQ0NDRAUEBAQEBAQFBQUFBQUFBQYGBgYGBgcHBwcHB8fHx8fHx8fHx//2wBDAQUFBQgHCA4HBw4gFhIWICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wgARCAM0A14DASIAAhEBAxEB/8QAHAAAAgMBAQEBAAAAAAAAAAAAAAIBAwQFBgcI/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAECAwQF/9oADAMBAAIQAxAAAAH5kBIEgPXI9bQQAAAAAAAAWV2AAAAAAAAAABEwTMSQBaASAAAAAExJIFoAESAs2FT2LJDqwAAAAAAAAAAAACDzBnSsrayAAAAAAAACspYrKS8TmjgIOpACitWIQZizVGgBqTBJEkDREkAUTExBMBMSA4I4AAAAAAAAAABEwzMzDUAKAWAAAAAEwDAKEgSPIjgAFAAAQAKAXACTTitkATIBsAXQBAAoAgAAFAAAQKwPTZXk9lAupc8lxnU0rkC9MwWLnrk0RRFu8DcJiZWUgAACSJHRBwQlgAAAAAAIFBhQaUcAAAzkAaCZVSwSssCsdAJgAkcBZBhRhQDRWDICVRgQAQAVxXWCRFGBGkIVwrHTUAsSsmAFglkMpICWQWWrEmspV0WtLloFtVKywyoakrQuKQeFhOzMTqgQhMATASQFhEgARIAAoAgAAAAAABEgSEK7ZIzCxIAAgAojiQlgI4QEsyS8OiSxag6kDrETM5KSERYFcutkyjVJASQtNKNmyQai1gD0DNsUOWJWkXxRFXrULaVKXGaIuXPNW1VwlsVot9aBCkDRBIAboCncGM1RlUCIJAICyxINZeYFkBAAAAAAAAAAB5kWZKgCAHz |