Skip to content

Instantly share code, notes, and snippets.

View cviniciussn's full-sized avatar
🏠
Working from home

Vinicius cviniciussn

🏠
Working from home
  • Buzzmonitor
  • Salvador, Bahia, Brasil
  • 02:58 (UTC -03:00)
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my 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])